noob island guard aggro
This commit is contained in:
@@ -975,6 +975,7 @@ public class MobAI {
|
|||||||
private static void hamletGuardAggro(Mob mob) {
|
private static void hamletGuardAggro(Mob mob) {
|
||||||
City guardedCity = mob.guardedCity;
|
City guardedCity = mob.guardedCity;
|
||||||
City atLocation = ZoneManager.getCityAtLocation(mob.loc);
|
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);
|
HashSet<AbstractWorldObject> loadedPlayers = WorldGrid.getObjectsInRangePartial(mob.loc, MobAIThread.AI_BASE_AGGRO_RANGE, MBServerStatics.MASK_PLAYER);
|
||||||
for (AbstractWorldObject awo : loadedPlayers) {
|
for (AbstractWorldObject awo : loadedPlayers) {
|
||||||
PlayerCharacter pc = (PlayerCharacter) awo;
|
PlayerCharacter pc = (PlayerCharacter) awo;
|
||||||
|
|||||||
Reference in New Issue
Block a user