From 4e5c77ec470c110eadb44fc0090517b9919ec6dd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 11:02:37 -0500 Subject: [PATCH] hamlet guard aggro fix --- src/engine/ai/MobileFSM.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 548af950..76e010f4 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -583,9 +583,13 @@ public class MobileFSM { if (mob.getCombatTarget() == null) { //safehold guard SafeGuardAggro(mob); - if (mob.getCombatTarget() != null) - CheckForAttack(mob); + } else{ + if(mob.combatTarget.isAlive() == false){ + SafeGuardAggro(mob); + } } + if (mob.getCombatTarget() != null) + CheckForAttack(mob); } private static void DefaultLogic(Mob mob) { if(mob.getObjectUUID() == 40548){