Browse Source

Simplify logic; variable is provided.

feature-workorder
MagicBot 1 year ago
parent
commit
16acd1c08c
  1. 7
      src/engine/mobileAI/MobAI.java

7
src/engine/mobileAI/MobAI.java

@ -1301,13 +1301,8 @@ public class MobAI {
if (mob.getGuild().getNation().equals(target.getGuild().getNation())) if (mob.getGuild().getNation().equals(target.getGuild().getNation()))
return false; return false;
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { if (mob.guardedCity.cityOutlaws.contains(target.getObjectUUID()) == true)
if (((Mob) mob.guardCaptain).building.getCity().cityOutlaws.contains(target.getObjectUUID()) == true) {
return true;
}
} else if (mob.building.getCity().cityOutlaws.contains(target.getObjectUUID()) == true) {
return true; return true;
}
//first check condemn list for aggro allowed (allies button is checked) //first check condemn list for aggro allowed (allies button is checked)

Loading…
Cancel
Save