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