mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-25 02:16:06 +07:00
Resolved #11974 - Fixed paradrop to areas outside of movement range
This commit is contained in:
parent
d6f50a8470
commit
b52f68f6f0
@ -273,7 +273,7 @@ class WorldMapHolder(
|
||||
var pathToTile: List<Tile>? = null
|
||||
try {
|
||||
tileToMoveTo = selectedUnit.movement.getTileToMoveToThisTurn(targetTile)
|
||||
if (!selectedUnit.type.isAirUnit())
|
||||
if (!selectedUnit.type.isAirUnit() && !selectedUnit.isPreparingParadrop())
|
||||
pathToTile = selectedUnit.movement.getDistanceToTiles().getPathToTile(tileToMoveTo)
|
||||
} catch (ex: Exception) {
|
||||
when (ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user