mob aggro issues

This commit is contained in:
2025-03-06 17:40:33 -06:00
parent 83aa28cad4
commit d562c49cd5
+1 -1
View File
@@ -1446,7 +1446,7 @@ public class MobAI {
if(mob.hate_values == null) if(mob.hate_values == null)
mob.hate_values = new HashMap<>(); mob.hate_values = new HashMap<>();
if(mob.combatTarget != null) if(mob.combatTarget != null && mob.combatTarget.isAlive() && mob.combatTarget.loc.distanceSquared(mob.loc) < 90f)
return; return;
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(mob.loc,60.0f,MBServerStatics.MASK_PLAYER); HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(mob.loc,60.0f,MBServerStatics.MASK_PLAYER);