Skip to main content

✅ Status persists through source death

CategoryAbility
StatusPassing
Testtests/test_status_effects.py::test_status_persists_through_source_death

Tests interaction between Lucifer, Duban.

Preconditions

  • phase_counter=1

  • Lane 0: P1's Sabnock (#088), Lane 0: P2's Duban (#001)

  • Duban has effect "pwr" -3 sourced from Sabnock (expires_phase=1)

Action

  • Remove Sabnock from state.demons (simulate death)

  • Do NOT remove status effects by source

Expected Postconditions

  • Sabnock is no longer in state.demons

  • Duban still has the "pwr" -3 effect

  • Effect persists because source death does NOT remove effects

Assertions

assert len(state_after_death.status_effects) == 1
assert get_stat_modifier(state_after_death, duban, "pwr") == -3