✅ Nyx poisoned night deals 2 damage and applies def debuff
| Category | Ability |
| Status | Passing |
| Test | tests/test_abilities_actions.py::test_nyx_poisoned_night_deals_2_damage_and_applies_def_debuff |
Nyx's Poisoned Night deals 2 damage and applies -2 DEF to exhausted target.
Preconditions
-
P1 Main Phase, P1 has 5 AP
-
Lane 0: P1's Nyx (#045) — HP=12, READIED
-
Lane 0: P2's Stolas (#022) — HP=15, 0 damage, EXHAUSTED (target must be exhausted)
Action
- Execute Nyx's Poisoned Night (ability[0], Allied, 1 AP, exhaust) targeting Stolas
result = execute_ability(state, nyx_on_field, ability_idx=0, targets=[stolas_on_field])
stolas_after = next(d for d in result.demons if d.unit_id == "022")
Expected Postconditions
-
Stolas: takes 2 damage (NOT fixed — goes through DEF)
-
Stolas: has status "def" -2 (expires this phase)
-
Nyx: EXHAUSTED
-
P1 AP: 4 (was 5, spent 1)
Assertions
assert stolas_after.damage == 2
assert def_effects[0].value == -2
assert result.players[Side.PLAYER_1].ap == 4