From 0bc41323b1c9fdb96578bc87a6917613af748209 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 30 Apr 2023 13:47:15 -0500 Subject: [PATCH] guard minions added to captains parentZone.zoneMobSet --- src/engine/objects/Mob.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index b328da32..2d2aed6d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -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;