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);