mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Fixed captured units not tp-ing out of liberated cities (#4239)
This commit is contained in:
parent
cf9e00c589
commit
300eb6f726
@ -127,6 +127,8 @@ class CityInfoConquestFunctions(val city: CityInfo){
|
||||
cityStats.update()
|
||||
|
||||
// Move units out of the city when liberated
|
||||
for (unit in getCenterTile().getUnits())
|
||||
unit.movement.teleportToClosestMoveableTile()
|
||||
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
||||
if (!unit.movement.canPassThrough(unit.currentTile))
|
||||
unit.movement.teleportToClosestMoveableTile()
|
||||
|
Loading…
x
Reference in New Issue
Block a user