From a6041d670d93eeacb449b97a8fd7e6df5a8405b4 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 5 Jul 2021 21:11:47 +0300 Subject: [PATCH] Obvious mistake --- core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt index 169f53db28..ac76f4b02e 100644 --- a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt +++ b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt @@ -11,7 +11,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) { fun getMovementCostBetweenAdjacentTiles(from: TileInfo, to: TileInfo, civInfo: CivilizationInfo): Float { if (from.isLand != to.isLand && unit.type.isLandUnit()) - if (!unit.civInfo.nation.disembarkCosts1 && from.isWater && to.isLand) return 1f + if (unit.civInfo.nation.disembarkCosts1 && from.isWater && to.isLand) return 1f else return 100f // this is embarkment or disembarkment, and will take the entire turn // land units will still spend all movement points to embark even with this unique