From 36485a0f0179d53a630e4623d9fa9f3f1ffc4def Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 8 Sep 2023 12:44:36 -0400 Subject: [PATCH] Formation enforced when captain is dead. --- src/engine/mobileAI/MobAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 13bc48f8..e5945f49 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -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; }