guard minions added to captains parentZone.zoneMobSet

This commit is contained in:
2023-04-30 13:47:15 -05:00
parent 3a7ad74ab6
commit 0bc41323b1
+6 -2
View File
@@ -762,7 +762,8 @@ public class Mob extends AbstractIntelligenceAgent {
mob.spawnTime = 900;
mob.npcOwner = guardCaptain;
mob.BehaviourType = Enum.MobBehaviourType.GuardMinion;
//add mob to zone set of captain
guardCaptain.getParentZone().zoneMobSet.add(mob);
return mob;
}
@@ -916,7 +917,10 @@ public class Mob extends AbstractIntelligenceAgent {
this.charItemManager.load();
//load AI for general mobs.
if(this.contract != null && NPC.ISWallArcher(this.contract)) this.BehaviourType = MobBehaviourType.GuardWallArcher;
if(this.contract != null && NPC.ISWallArcher(this.contract)){
this.BehaviourType = MobBehaviourType.GuardWallArcher;
this.isPlayerGuard = true;
}
if (isPet || isSiege || (isGuard && this.contract == null)) this.currentID = (--Mob.staticID);
else this.currentID = this.dbID;