teleportToClosestMoveableTile

fun teleportToClosestMoveableTile()

Displace a unit - choose a viable tile close by if possible and 'teleport' the unit there. This will not use movement points or check for a possible route. It is used e.g. if an enemy city expands its borders, or trades or diplomacy change a unit's allowed position. CAN DESTROY THE UNIT.

Sources

jvm source
Link copied to clipboard