From f3b6f5595b335e0d25c5024554e1414c76bc2e5c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 18 Apr 2023 20:54:53 -0500 Subject: [PATCH] logic for wall archers fix --- src/engine/gameManager/BuildingManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 25bf31b8..7b53208d 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -468,8 +468,7 @@ public enum BuildingManager { Mob mob = null; NPC npc = null; - - if (NPC.ISGuardCaptain(contractID.getContractID())) { + if (NPC.ISWallArcher(contractID.getContractID())) { mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); @@ -479,9 +478,10 @@ public enum BuildingManager { mob.setRank(rank); mob.setPlayerGuard(true); mob.setParentZone(zone); + mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher; return true; } - if (NPC.ISWallArcher(contractID.getContractID())) { + if (NPC.ISGuardCaptain(contractID.getContractID())) { mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID()); @@ -491,7 +491,6 @@ public enum BuildingManager { mob.setRank(rank); mob.setPlayerGuard(true); mob.setParentZone(zone); - mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher; return true; } npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);