guards get Mob.guardedCity assigned to
This commit is contained in:
@@ -310,6 +310,7 @@ public class MobileFSM {
|
||||
return;
|
||||
else{
|
||||
if(mob.isPlayerGuard && mob.guardedCity._playerMemory.size() < 1 && mob.playerAgroMap.isEmpty())
|
||||
//guards use aggro map and players in their local city zone
|
||||
return;
|
||||
}
|
||||
if (mob.despawned && mob.isPlayerGuard) {
|
||||
|
||||
@@ -1989,6 +1989,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
else {
|
||||
this.BehaviourType = MobBehaviourType.GuardCaptain;
|
||||
this.spawnTime = 900;
|
||||
this.guardedCity = ZoneManager.getCityAtLocation(this.bindLoc);
|
||||
}
|
||||
|
||||
this.deathTime = 0;
|
||||
|
||||
Reference in New Issue
Block a user