From 6524a5157a50901d2c279664fb118572b1c17f67 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Wed, 27 Nov 2024 14:16:36 +0200 Subject: [PATCH] Re-allow long-tile swapping - resolves #12527, relevant to #12522 --- core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt b/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt index 3e3c7dafa1..4121991a7d 100644 --- a/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt +++ b/core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt @@ -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())