From 2193e24364612b177ae61db889dacea5946f2939 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 16 Apr 2024 00:46:40 +0300 Subject: [PATCH] Disallow wonders from being selected in puppets, even when 'just' choosing best stat building --- core/src/com/unciv/logic/automation/Automation.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index e886a27dcc..764294885a 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -256,7 +256,8 @@ object Automation { city: City, construction: INonPerpetualConstruction ): Boolean { - return allowCreateImprovementBuildings(civInfo, city, construction) + return !(construction is Building && construction.isWonder && city.isPuppet) + && allowCreateImprovementBuildings(civInfo, city, construction) && allowSpendingResource(civInfo, construction, city) }