Skip to main content

✅ Sabnock pink haze status persists through source death

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_sabnock_pink_haze_status_persists_through_source_death

Pink Haze is active on Duban. Sabnock dies. Status persists.

Preconditions

  • P1 Main Phase (phase_counter=1)

  • Lane 0: Sabnock (#003) — READIED, 5 AP

  • Lane 0: Duban (#001) — READIED

  • Pink Haze applied to Duban (phase_counter=1, both effects active)

Action

  • Remove Sabnock from battlefield (simulate death)
state_after = execute_ability(state, sabnock_on_field, ability_idx=0, targets=[duban_on_field])

state_after.demons = [d for d in state_after.demons if d.unit_id != "003"]

active_on_duban = get_active_effects_on(state_after, duban_on_field)

Expected Postconditions

  • Duban still has both status effects active (pwr -3, def -2)

  • Status effects persist through source demon's death (ability_implementation_guide.json)

Assertions

assert len(active_on_duban) == 2, (
"Pink Haze must persist even after Sabnock (source) dies. "
"Status effects do NOT expire on source death (ability_implementation_guide.json)."
)