mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
parent
5a204eb929
commit
6524a5157a
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user