mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01: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:
parent
a566bb6bc0
commit
7ce519c5d4
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user