Browse Source

noob island guard aggro

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

1
src/engine/mobileAI/MobAI.java

@ -975,6 +975,7 @@ public class MobAI { @@ -975,6 +975,7 @@ public class MobAI {
private static void hamletGuardAggro(Mob mob) {
City guardedCity = mob.guardedCity;
City atLocation = ZoneManager.getCityAtLocation(mob.loc);
Realm realm = RealmMap.getRealmAtLocation(mob.loc);
HashSet<AbstractWorldObject> loadedPlayers = WorldGrid.getObjectsInRangePartial(mob.loc, MobAIThread.AI_BASE_AGGRO_RANGE, MBServerStatics.MASK_PLAYER);
for (AbstractWorldObject awo : loadedPlayers) {
PlayerCharacter pc = (PlayerCharacter) awo;

Loading…
Cancel
Save