forked from MagicBane/Server
logic for wall archers fix
This commit is contained in:
@@ -468,19 +468,6 @@ public enum BuildingManager {
|
|||||||
|
|
||||||
Mob mob = null;
|
Mob mob = null;
|
||||||
NPC npc = null;
|
NPC npc = null;
|
||||||
|
|
||||||
if (NPC.ISGuardCaptain(contractID.getContractID())) {
|
|
||||||
|
|
||||||
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID());
|
|
||||||
|
|
||||||
if (mob == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
mob.setRank(rank);
|
|
||||||
mob.setPlayerGuard(true);
|
|
||||||
mob.setParentZone(zone);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (NPC.ISWallArcher(contractID.getContractID())) {
|
if (NPC.ISWallArcher(contractID.getContractID())) {
|
||||||
|
|
||||||
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID());
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID());
|
||||||
@@ -494,6 +481,18 @@ public enum BuildingManager {
|
|||||||
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher;
|
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (NPC.ISGuardCaptain(contractID.getContractID())) {
|
||||||
|
|
||||||
|
mob = Mob.createMob( contractID.getMobbaseID(), NpcLoc, contractOwner.getGuild(), true, zone, building, contractID.getContractID());
|
||||||
|
|
||||||
|
if (mob == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
mob.setRank(rank);
|
||||||
|
mob.setPlayerGuard(true);
|
||||||
|
mob.setParentZone(zone);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
|
npc = NPC.createNPC( pirateName, contractID.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
|
||||||
|
|
||||||
if (npc == null)
|
if (npc == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user