Re-allow long-tile swapping - resolves #12527, relevant to #12522

This commit is contained in:
yairm210 2024-11-27 14:16:36 +02:00
parent 5a204eb929
commit 6524a5157a

View File

@ -530,8 +530,6 @@ class UnitMovement(val unit: MapUnit) {
* Precondition: this unit can swap-move to the given tile, as determined by canUnitSwapTo
*/
fun swapMoveToTile(destination: Tile) {
if (!unit.currentTile.neighbors.contains(destination))
throw Exception("Unit $unit cannot swap with a tile that is not a neighbor")
unit.stopEscorting()
val otherUnit = (
if (unit.isCivilian())