mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 22:58:50 +07:00
I'm pretty sure annexed cities in resistance shouldn't be allowed to buy tiles (#9213)
This commit is contained in:
@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user