Skip to main content

✅ Sabnock passive applies def debuff after exhaust action

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_sabnock_passive_applies_def_debuff_after_exhaust_action

Tests interaction between Sabnock, Flauros.

Preconditions

  • Lane 0: P1's Sabnock (#003), READIED

  • Lane 0: P2's Flauros (#013) — target

Action

  • Sabnock uses Pink Haze targeting Flauros
result = execute_ability(state, sabnock_on_field, ability_idx=0, targets=[flauros_on_field])

pwr_effects = [
e for e in result.status_effects
if e.target_instance_id == flauros_on_field.instance_id and e.stat == "pwr"
]
def_effects = [
e for e in result.status_effects
if e.target_instance_id == flauros_on_field.instance_id and e.stat == "def"
]

Expected Postconditions

  • Flauros has -3 PWR (from Pink Haze handler)

  • Flauros has -2 DEF (from Sabnock passive — ABILITY_USED trigger)

Assertions

assert any(e.value == -3 for e in pwr_effects), (
"Flauros should have -3 PWR from Pink Haze handler."
)
assert any(e.value == -2 for e in def_effects), (
"Flauros should have -2 DEF from Sabnock's passive (ABILITY_USED trigger)."
)