From e5fba340fbd7e022eb0530bd230f36a119269093 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 21 Aug 2023 20:24:49 -0500 Subject: [PATCH] guard minion AI restored to follow captain attack commands --- src/engine/mobileAI/MobAI.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 751ffc0e..676a8c4a 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -1074,12 +1074,10 @@ public class MobAI { } }else { if (mob.npcOwner.getCombatTarget() != null) - if(mob.getCombatTarget() != null && mob.getCombatTarget().equals(mob.npcOwner.getCombatTarget()) == false) mob.setCombatTarget(mob.npcOwner.getCombatTarget()); else - if(mob.getCombatTarget() != null) { + if (mob.getCombatTarget() != null) mob.setCombatTarget(null); - } } CheckMobMovement(mob); CheckForAttack(mob);