Browse Source

noob island guard aggro

combat-2
FatBoy-DOTC 7 months ago
parent
commit
cd8099b42f
  1. 2
      src/engine/mobileAI/MobAI.java

2
src/engine/mobileAI/MobAI.java

@ -978,6 +978,8 @@ public class MobAI {
HashSet<AbstractWorldObject> loadedMobs = WorldGrid.getObjectsInRangePartial(mob.loc, MobAIThread.AI_BASE_AGGRO_RANGE, MBServerStatics.MASK_MOB); HashSet<AbstractWorldObject> loadedMobs = WorldGrid.getObjectsInRangePartial(mob.loc, MobAIThread.AI_BASE_AGGRO_RANGE, MBServerStatics.MASK_MOB);
for (AbstractWorldObject awo : loadedMobs) { for (AbstractWorldObject awo : loadedMobs) {
Mob targetMob = (Mob) awo; Mob targetMob = (Mob) awo;
if (targetMob.equals(mob))
continue;
if (!targetMob.isAlive() || targetMob.despawned) if (!targetMob.isAlive() || targetMob.despawned)
continue; continue;
if (targetMob.isPet()) if (targetMob.isPet())

Loading…
Cancel
Save