mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Cities that become capital no longer continue being razed
This commit is contained in:
parent
b728748cfa
commit
3a5900b442
@ -253,8 +253,10 @@ class CityInfoConquestFunctions(val city: CityInfo){
|
||||
if (cityConstructions.isBuilt(capitalCityIndicator)) {
|
||||
cityConstructions.removeBuilding(capitalCityIndicator)
|
||||
val firstOtherCity = oldCiv.cities.firstOrNull { it != this }
|
||||
if (firstOtherCity != null)
|
||||
if (firstOtherCity != null) {
|
||||
firstOtherCity.cityConstructions.addBuilding(capitalCityIndicator) // relocate palace
|
||||
firstOtherCity.isBeingRazed = false // Do not allow it to continue being razed if it was!
|
||||
}
|
||||
}
|
||||
|
||||
civInfo.cities = civInfo.cities.toMutableList().apply { remove(city) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user