From cd8099b42fdd6449b1da34d96e7730d240cbdb10 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 20:01:39 -0500 Subject: [PATCH] noob island guard aggro --- src/engine/mobileAI/MobAI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 79e26e43..3115288c 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -978,6 +978,8 @@ public class MobAI { HashSet loadedMobs = WorldGrid.getObjectsInRangePartial(mob.loc, MobAIThread.AI_BASE_AGGRO_RANGE, MBServerStatics.MASK_MOB); for (AbstractWorldObject awo : loadedMobs) { Mob targetMob = (Mob) awo; + if (targetMob.equals(mob)) + continue; if (!targetMob.isAlive() || targetMob.despawned) continue; if (targetMob.isPet())