From 277bb14bab6bf366024c340227b0472b8fb516ca Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Jan 2025 17:55:06 -0600 Subject: [PATCH] mob ai work --- src/engine/mobileAI/MobAi2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAi2.java b/src/engine/mobileAI/MobAi2.java index 62d2f62a..fbab0711 100644 --- a/src/engine/mobileAI/MobAi2.java +++ b/src/engine/mobileAI/MobAi2.java @@ -160,7 +160,7 @@ public class MobAi2 { if(!mob.isCombat()) mob.setCombat(true); - if (!CombatUtilities.inRangeToAttack(mob, target)) { + if (!CombatUtilities.inRangeToAttack(mob, target) && mob.BehaviourType.canRoam) { if(mob.nextChaseUpdate < System.currentTimeMillis()) { mob.nextChaseUpdate = System.currentTimeMillis() + 2500L; MovementUtilities.aiMove(mob, target.loc, false);