Resolved #12213 - escorted unit cannot move if its escort cannot move

This commit is contained in:
yairm210 2024-09-16 04:07:39 +03:00
parent 7283c647d6
commit b3e00a7944

View File

@ -43,6 +43,8 @@ class UnitMovement(val unit: MapUnit) {
// If I can't move my only option is to stay...
if (unitMovement == 0f || unit.cache.cannotMove) return distanceToTiles
// If our escort can't move, ditto
if (includeOtherEscortUnit && unit.getOtherEscortUnit()?.currentMovement == 0f) return distanceToTiles
var tilesToCheck = listOf(unitTile)