From a33ac85b21c44cecf4669582654af2898dc981f3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Jan 2025 17:46:46 -0600 Subject: [PATCH] mob ai work --- src/engine/mobileAI/MobAi2.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAi2.java b/src/engine/mobileAI/MobAi2.java index c58d25b2..bdda3f22 100644 --- a/src/engine/mobileAI/MobAi2.java +++ b/src/engine/mobileAI/MobAi2.java @@ -147,10 +147,12 @@ public class MobAi2 { if (!CombatUtilities.inRangeToAttack(mob, target)) { if(mob.nextChaseUpdate < System.currentTimeMillis()) { - mob.nextChaseUpdate = System.currentTimeMillis() + 1500L; + mob.nextChaseUpdate = System.currentTimeMillis() + 5000L; MovementUtilities.aiMove(mob, target.loc, false); } return; + }else{ + mob.stopMovement(mob.getMovementLoc()); } switch (target.getObjectType()) {