Skip to main content

✅ Morax nurture removes pwr damage

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_morax_nurture_removes_pwr_damage

Morax uses Nurture to heal a damaged ally.

Preconditions

  • P1 Main Phase, P1 has 5 AP

  • Lane 0: P1's Morax (#006) — HP=12, PWR=4, READIED

  • Lane 0: P1's Sabnock (#003) — HP=15, 8 damage, READIED (ally to heal)

Action

  • Execute Morax's Nurture (ability[0], Quick, 1 AP, ready, 1x) targeting Sabnock
result = execute_ability(state, morax_on_field, ability_idx=0, targets=[sabnock_on_field])
sabnock_after = next(d for d in result.demons if d.unit_id == "003")

Expected Postconditions

  • Sabnock: damage reduced by 4 (Morax's PWR=4) → 4 remaining damage

  • Morax: NOT exhausted (ready_required=True means doesn't exhaust)

  • P1 AP: 4 (was 5, spent 1)

Assertions

assert sabnock_after.damage == 4
assert result.players[Side.PLAYER_1].ap == 4