Resolved #12159 - Cities can be conquered in the middle of automation, so we need to "finalize" the sequence before iterating

This commit is contained in:
yairm210
2024-08-26 13:59:56 +03:00
parent a566bb6bc0
commit 7ce519c5d4

View File

@ -423,6 +423,7 @@ object NextTurnAutomation {
val citiesRequiringManualPlacement = civInfo.getKnownCivs().filter { it.isAtWarWith(civInfo) }
.flatMap { it.cities }
.filter { it.getCenterTile().getTilesInDistance(4).count { it.militaryUnit?.civ == civInfo } > 4 }
.toList()
for (city in citiesRequiringManualPlacement) automateCityConquer(civInfo, city)