I'm pretty sure annexed cities in resistance shouldn't be allowed to buy tiles (#9213)

This commit is contained in:
SomeTroglodyte
2023-04-17 20:42:37 +02:00
committed by GitHub
parent dbc9b0d0bd
commit 92ad0495f2

View File

@ -57,8 +57,9 @@ class CityExpansionManager : IsPartOfGameInfoSerialization {
fun canBuyTile(tile: Tile): Boolean {
return when {
city.isPuppet -> false
city.isPuppet || city.isBeingRazed -> false
tile.getOwner() != null -> false
city.isInResistance() -> false
tile !in city.tilesInRange -> false
else -> tile.neighbors.any { it.getCity() == city }
}