Move Until Healed wake up to startTurn so Fortify lasts until start of turn (#12786)

This commit is contained in:
itanasi
2025-01-11 09:56:42 -08:00
committed by GitHub
parent a3b48ab532
commit 534850fd90

View File

@ -35,11 +35,6 @@ class UnitTurnManager(val unit: MapUnit) {
if (!unit.hasUnitMovedThisTurn() || unit.hasUnique(UniqueType.HealsEvenAfterAction))
healUnit()
if (unit.action != null && unit.health > 99)
if (unit.isActionUntilHealed()) {
unit.action = null // wake up when healed
}
if (unit.isPreparingParadrop() || unit.isPreparingAirSweep())
unit.action = null
@ -157,6 +152,11 @@ class UnitTurnManager(val unit: MapUnit) {
}
) unit.action = null
if (unit.action != null && unit.health > 99)
if (unit.isActionUntilHealed()) {
unit.action = null // wake up when healed
}
val tileOwner = unit.getTile().getOwner()
if (tileOwner != null
&& !unit.cache.canEnterForeignTerrain