Browse Source

logic for wall archers fix

master
FatBoy-DOTC 2 years ago
parent
commit
f3b6f5595b
  1. 7
      src/engine/gameManager/BuildingManager.java

7
src/engine/gameManager/BuildingManager.java

@ -468,8 +468,7 @@ public enum BuildingManager { @@ -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 { @@ -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 { @@ -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);

Loading…
Cancel
Save