mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Fix tests, unresolve #12611
This commit is contained in:
@ -584,8 +584,6 @@ class UnitMovement(val unit: MapUnit) {
|
||||
* Leave it as default unless you know what [canMoveTo] does.
|
||||
*/
|
||||
fun canMoveTo(tile: Tile, assumeCanPassThrough: Boolean = false, allowSwap: Boolean = false, includeOtherEscortUnit: Boolean = true): Boolean {
|
||||
if (unit.cache.cannotMove) return false
|
||||
|
||||
if (unit.baseUnit.movesLikeAirUnits)
|
||||
return canAirUnitMoveTo(tile, unit)
|
||||
|
||||
|
Reference in New Issue
Block a user