|
|
|
@ -284,12 +284,12 @@ public class MobAI {
@@ -284,12 +284,12 @@ public class MobAI {
|
|
|
|
|
|
|
|
|
|
// Minions are given marching orders by the captain if he is alive
|
|
|
|
|
|
|
|
|
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION) && mob.guardCaptain.isAlive()) { |
|
|
|
|
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) { |
|
|
|
|
Mob captain = (Mob) mob.guardCaptain; |
|
|
|
|
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).add(Formation.getOffset(2, mob.guardCaptain.minions.indexOf(mob.getObjectUUID()) + 3)); |
|
|
|
|
mob.destination = mob.patrolPoints.get(mob.lastPatrolPointIndex); |
|
|
|
|
mob.lastPatrolPointIndex += 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|