mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Resolved #12213 - escorted unit cannot move if its escort cannot move
This commit is contained in:
parent
7283c647d6
commit
b3e00a7944
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user