From 9e4b596aa15bd58ecb333c9ac64a89734a97454b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 26 Jun 2024 20:07:37 -0500 Subject: [PATCH] enforce KOS for building works --- src/engine/gameManager/BuildingManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 415f9c29..8907339a 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -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());