noob island guard aggro

This commit is contained in:
2024-05-17 20:01:39 -05:00
parent 2cdcba47a5
commit cd8099b42f
+2
View File
@@ -978,6 +978,8 @@ public class MobAI {
HashSet<AbstractWorldObject> 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())