mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:54:25 +07:00
Fix tests, unresolve #12611
This commit is contained in:
parent
6a63b6fe31
commit
75fc42e1c8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user