mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-03 08:56:17 -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()
|
cityStats.update()
|
||||||
|
|
||||||
// Move units out of the city when liberated
|
// Move units out of the city when liberated
|
||||||
|
for (unit in getCenterTile().getUnits())
|
||||||
|
unit.movement.teleportToClosestMoveableTile()
|
||||||
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
for (unit in getTiles().flatMap { it.getUnits() }.toList())
|
||||||
if (!unit.movement.canPassThrough(unit.currentTile))
|
if (!unit.movement.canPassThrough(unit.currentTile))
|
||||||
unit.movement.teleportToClosestMoveableTile()
|
unit.movement.teleportToClosestMoveableTile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user