Browse Source

enforce KOS for building works

postwipe-hostile
FatBoy-DOTC 5 months ago
parent
commit
9e4b596aa1
  1. 8
      src/engine/gameManager/BuildingManager.java

8
src/engine/gameManager/BuildingManager.java

@ -468,6 +468,14 @@ public enum BuildingManager { @@ -468,6 +468,14 @@ public enum BuildingManager {
if (Guild.sameNationExcludeErrant(building.getGuild(), player.getGuild()))
return false;
if(building.enforceKOS) {
if (building.getCity() != null) {
Building TOL = building.getCity().getTOL();
if (TOL != null) {
building = TOL;
}
}
}
if (!building.reverseKOS) {
Condemned condemn = building.getCondemned().get(player.getObjectUUID());

Loading…
Cancel
Save