From 13d83c0003a704e97fe964a7da016ff30f78a3a1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 2 Apr 2023 15:51:39 -0500 Subject: [PATCH] NPC guards no longer attack players --- src/engine/ai/MobileFSM.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 250c0e06..f3456e62 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -93,8 +93,11 @@ public class MobileFSM { if (mob.isPlayerGuard()) guardAggro(mob, mob.getAggroTargetID()); - else + else if (mob.isGuard()) { + awakeNPCguard(mob); + } else { aggro(mob, mob.getAggroTargetID()); + } break; case Patrol: