diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index f56bf878..5c3f6106 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -289,6 +289,15 @@ public class MobAI { mob.lastPatrolPointIndex += 1; } + // Captain orders minions to patrol + + if (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) + for (Integer minionUUID : mob.minions) { + Mob minion = Mob.getMob(minionUUID); + if (minion.isAlive() && minion.combatTarget == null && minion.isMoving() == false) + MobAI.Patrol(minion); + } + MovementUtilities.aiMove(mob, mob.destination, true); } catch (Exception e) {