Browse Source

Captains order minions to patrol

feature-workorder
MagicBot 1 year ago
parent
commit
39fea5bc2f
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -294,7 +294,7 @@ public class MobAI {
if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN))
for (Integer minionUUID : mob.minions) { for (Integer minionUUID : mob.minions) {
Mob minion = Mob.getMob(minionUUID); Mob minion = Mob.getMob(minionUUID);
if (minion.isAlive() && minion.combatTarget == null && minion.isMoving() == false) if (minion.isAlive() && minion.combatTarget == null)
MobAI.Patrol(minion); MobAI.Patrol(minion);
} }

Loading…
Cancel
Save