Browse Source

Captains order minions to patrol

feature-workorder
MagicBot 1 year ago
parent
commit
660d5c1270
  1. 9
      src/engine/mobileAI/MobAI.java

9
src/engine/mobileAI/MobAI.java

@ -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) {

Loading…
Cancel
Save