Resolved #5752 - don't show 'fortify until healed' if the unit won't actually heal in this tile

This commit is contained in:
yairm210 2021-12-05 21:38:27 +02:00
parent 144d2738a4
commit 31639aac9f

View File

@ -721,7 +721,7 @@ object UnitActions {
val isFortified = unit.isFortified()
val isDamaged = unit.health < 100
if (isDamaged && !showingAdditionalActions)
if (isDamaged && !showingAdditionalActions && unit.rankTileForHealing(unit.currentTile) != 0)
actionList += UnitAction(UnitActionType.FortifyUntilHealed,
action = {
unit.fortifyUntilHealed()