From de08d0d2104b0a64f7d7b87be6d6ca7d611687e9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 15 May 2024 20:03:03 -0500 Subject: [PATCH] mob AI work --- src/engine/mobileAI/utilities/MovementUtilities.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/mobileAI/utilities/MovementUtilities.java b/src/engine/mobileAI/utilities/MovementUtilities.java index 8d78b817..9a12eef8 100644 --- a/src/engine/mobileAI/utilities/MovementUtilities.java +++ b/src/engine/mobileAI/utilities/MovementUtilities.java @@ -135,6 +135,10 @@ public class MovementUtilities { public static boolean canMove(Mob agent) { + + if(agent.isMoving()) + return false; + if (agent.getMobBase() != null && Enum.MobFlagType.SENTINEL.elementOf(agent.getMobBase().getFlags())) return false;