From 7dfd8148d5914c9c45bea5d0ccfe94a9dc47c283 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 10:47:10 -0500 Subject: [PATCH] use aggro range not mob range --- src/engine/ai/MobileFSM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 922b1e1f..a76f6c7a 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -486,7 +486,7 @@ public class MobileFSM { AttackTarget(mob, mob.getCombatTarget()); } private static void CheckToSendMobHome(Mob mob) { - if(mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob,mob.getCombatTarget(),mob.getRange() * 0.5f)){ + if(mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob,mob.getCombatTarget(),MBServerStatics.AI_BASE_AGGRO_RANGE * 0.5f)){ return; } if (mob.isPlayerGuard() && !mob.despawned) {