Fix tests, unresolve #12611

This commit is contained in:
yairm210 2024-12-09 09:57:32 +02:00
parent 6a63b6fe31
commit 75fc42e1c8

View File

@ -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)