Browse Source

Formation enforced when captain is dead.

combat-2
MagicBot 1 year ago
parent
commit
36485a0f01
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -288,7 +288,7 @@ public class MobAI { @@ -288,7 +288,7 @@ public class MobAI {
mob.destination = captain.destination.add(Formation.getOffset(2, mob.guardCaptain.minions.indexOf(mob.getObjectUUID()) + 3));
mob.lastPatrolPointIndex = captain.lastPatrolPointIndex;
} else {
mob.destination = mob.patrolPoints.get(mob.lastPatrolPointIndex);
mob.destination = mob.patrolPoints.get(mob.lastPatrolPointIndex).add(Formation.getOffset(2, mob.guardCaptain.minions.indexOf(mob.getObjectUUID()) + 3));
mob.lastPatrolPointIndex += 1;
}

Loading…
Cancel
Save