From db4eb0579e62d5b6de2f2d9060dbba4559006121 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 7 Sep 2023 13:37:32 -0400 Subject: [PATCH] Aggro code removed from check to send mob home. --- src/engine/mobileAI/MobAI.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 099dcf73..fbde89f5 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -264,7 +264,7 @@ public class MobAI { if (!forced) return; - //guards inherit barracks patrol points dynamically + //guards inherit barracks patrol points dynamically if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN) || mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { @@ -843,15 +843,6 @@ public class MobAI { private static void CheckToSendMobHome(Mob mob) { try { - if (mob.behaviourType.isAgressive) { - - if (mob.isPlayerGuard()) { - if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) - CheckForPlayerGuardAggro(mob); - } else { - CheckForAggro(mob); - } - } if (mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob, mob.getCombatTarget(), MobAIThread.AI_BASE_AGGRO_RANGE * 0.5f)) return;