|
|
@ -289,6 +289,15 @@ public class MobAI { |
|
|
|
mob.lastPatrolPointIndex += 1; |
|
|
|
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); |
|
|
|
MovementUtilities.aiMove(mob, mob.destination, true); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|