mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
fix bug on capturing capital (#5263)
(cherry picked from commit 47d1a5c009205fce21cca720e9151ec2826f27e5)
This commit is contained in:
parent
f8f112441a
commit
803575665d
@ -37,6 +37,7 @@ class CityInfoConquestFunctions(val city: CityInfo){
|
||||
for (building in cityConstructions.getBuiltBuildings()) {
|
||||
when {
|
||||
building.hasUnique("Never destroyed when the city is captured") || building.isWonder -> continue
|
||||
building.hasUnique("Indicates the capital city") -> continue // Palace needs to stay a just a bit longer so moveToCiv isn't confused
|
||||
building.hasUnique("Destroyed when the city is captured") ->
|
||||
cityConstructions.removeBuilding(building.name)
|
||||
else -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user