From 660d5c127028d8639c87265dd0608a476f39abb8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 7 Sep 2023 12:41:20 -0400 Subject: [PATCH] Captains order minions to patrol --- src/engine/mobileAI/MobAI.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index f56bf878..5c3f6106 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -289,6 +289,15 @@ public class MobAI { 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); } catch (Exception e) {