bane commander NPC
This commit is contained in:
@@ -445,6 +445,8 @@ public enum BuildingManager {
|
||||
if(banedCity != null){
|
||||
if(banedCity.getGuild().getNation().equals(playerNation)){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,6 +281,8 @@ public final class Bane {
|
||||
baneCommander = NPC.createNPC("Bane Commander", contractID, spawnLoc, bane.getCity().getGuild(), ZoneManager.findSmallestZone(bane.getStone().loc), (short) 70, bane.getStone());
|
||||
baneCommander.setLoc(spawnLoc);
|
||||
baneCommander.setGuild(bane.getCity().getGuild());
|
||||
WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z);
|
||||
WorldGrid.updateObject(baneCommander);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user