From 0e39d47dab23806faf721918a3f8a830e20aeba9 Mon Sep 17 00:00:00 2001 From: 9kgsofrice <65415105+9kgsofrice@users.noreply.github.com> Date: Wed, 2 Dec 2020 16:49:37 +0000 Subject: [PATCH] Changes check to remove national wonders on city ownership changes to rely on building.isNationalWonder (#3386) --- core/src/com/unciv/logic/city/CityInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index 07c0f453b9..1272b60cfb 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -537,7 +537,7 @@ class CityInfo { .forEach { workedTiles = workedTiles.withoutItem(it); population.autoAssignPopulation() } // Remove all national wonders - for(building in cityConstructions.getBuiltBuildings().filter { it.requiredBuildingInAllCities!=null }) + for(building in cityConstructions.getBuiltBuildings().filter { it.isNationalWonder }) cityConstructions.removeBuilding(building.name) // Remove/relocate palace for old Civ