wall archers given BehaviourType in initializeMob

This commit is contained in:
2023-04-30 13:03:41 -05:00
parent eee949de93
commit 7ed0b8a052
+1 -1
View File
@@ -916,7 +916,7 @@ public class Mob extends AbstractIntelligenceAgent {
this.charItemManager.load(); this.charItemManager.load();
//load AI for general mobs. //load AI for general mobs.
if(this.contract != null && NPC.ISWallArcher(this.contract)) this.BehaviourType = MobBehaviourType.GuardWallArcher;
if (isPet || isSiege || (isGuard && this.contract == null)) this.currentID = (--Mob.staticID); if (isPet || isSiege || (isGuard && this.contract == null)) this.currentID = (--Mob.staticID);
else this.currentID = this.dbID; else this.currentID = this.dbID;