mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user