From 23f41f8ae747b2597c6c4be7898e30dbc74d78fa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 9 Sep 2023 09:26:55 -0400 Subject: [PATCH] Minions always have offset not determined by captain being alive. --- src/engine/mobileAI/MobAI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index a5072fc0..3c3f5d46 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -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; }