From 16acd1c08c280ce57608ff0450573d2b11848f4d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 5 Sep 2023 12:55:12 -0400 Subject: [PATCH] Simplify logic; variable is provided. --- src/engine/mobileAI/MobAI.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index e4830aea..f2b33879 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -1301,13 +1301,8 @@ public class MobAI { if (mob.getGuild().getNation().equals(target.getGuild().getNation())) return false; - if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { - if (((Mob) mob.guardCaptain).building.getCity().cityOutlaws.contains(target.getObjectUUID()) == true) { - return true; - } - } else if (mob.building.getCity().cityOutlaws.contains(target.getObjectUUID()) == true) { + if (mob.guardedCity.cityOutlaws.contains(target.getObjectUUID()) == true) return true; - } //first check condemn list for aggro allowed (allies button is checked)