From d562c49cd5a6452bf46c911f335612ec4bd51f29 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Mar 2025 17:40:33 -0600 Subject: [PATCH] mob aggro issues --- src/engine/mobileAI/MobAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 4ba00a8a..6f5a79c3 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -1446,7 +1446,7 @@ public class MobAI { if(mob.hate_values == null) mob.hate_values = new HashMap<>(); - if(mob.combatTarget != null) + if(mob.combatTarget != null && mob.combatTarget.isAlive() && mob.combatTarget.loc.distanceSquared(mob.loc) < 90f) return; HashSet inRange = WorldGrid.getObjectsInRangePartial(mob.loc,60.0f,MBServerStatics.MASK_PLAYER);