Skip to main content

✅ Nyx poisoned night 2 damage goes through def

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_nyx_poisoned_night_2_damage_goes_through_def

Poisoned Night 2 damage is NOT fixed — DEF absorbs it.

Preconditions

  • Duban has +5 DEF (via status effect)

  • Duban is EXHAUSTED

Action

  • Execute Nyx's Poisoned Night targeting Duban with 5 DEF
result = execute_ability(state, nyx_on_field, ability_idx=0, targets=[duban_on_field])
duban_after = next(d for d in result.demons if d.unit_id == "001")

Expected Postconditions

  • Duban takes 0 damage (max(0, 2 - 5) = 0 — DEF absorbs all damage)

  • Status "def" -2 is still applied (status applies regardless of damage)

  • (Poisoned Night uses deal_damage NOT deal_fixed_damage)

Assertions

assert duban_after.damage == 0