Resolved #11974 - Fixed paradrop to areas outside of movement range

This commit is contained in:
yairm210 2024-07-17 11:15:09 +03:00
parent d6f50a8470
commit b52f68f6f0

View File

@ -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) {