Browse Source

enforce KOS for building works

postwipe-hostile
FatBoy-DOTC 6 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 {
if (Guild.sameNationExcludeErrant(building.getGuild(), player.getGuild())) if (Guild.sameNationExcludeErrant(building.getGuild(), player.getGuild()))
return false; return false;
if(building.enforceKOS) {
if (building.getCity() != null) {
Building TOL = building.getCity().getTOL();
if (TOL != null) {
building = TOL;
}
}
}
if (!building.reverseKOS) { if (!building.reverseKOS) {
Condemned condemn = building.getCondemned().get(player.getObjectUUID()); Condemned condemn = building.getCondemned().get(player.getObjectUUID());

Loading…
Cancel
Save