Disallow wonders from being selected in puppets, even when 'just' choosing best stat building

This commit is contained in:
Yair Morgenstern 2024-04-16 00:46:40 +03:00
parent 31f16abbae
commit 2193e24364

View File

@ -256,7 +256,8 @@ object Automation {
city: City, city: City,
construction: INonPerpetualConstruction construction: INonPerpetualConstruction
): Boolean { ): Boolean {
return allowCreateImprovementBuildings(civInfo, city, construction) return !(construction is Building && construction.isWonder && city.isPuppet)
&& allowCreateImprovementBuildings(civInfo, city, construction)
&& allowSpendingResource(civInfo, construction, city) && allowSpendingResource(civInfo, construction, city)
} }