From 36eef1942b80b2bc892f1477595dd8a09367a3d4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 10:43:05 -0500 Subject: [PATCH] mobs use half aggro range top chase targets past go home point --- src/engine/ai/MobileFSM.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index af88ac78..6e65ef4f 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(CombatUtilities.inRangeToAttack(mob, mob.getCombatTarget()) == true){ + if(CombatUtilities.inRange2D(mob,mob.getCombatTarget(),mob.getRange() * 0.5f)){ return; } if (mob.isPlayerGuard() && !mob.despawned) { @@ -505,6 +505,7 @@ public class MobileFSM { } } else if(MovementUtilities.inRangeOfBindLocation(mob) == false) { + PowersBase recall = PowersManager.getPowerByToken(-1994153779); PowersManager.useMobPower(mob, mob, recall, 40); mob.setCombatTarget(null);