Skip to main content

✅ Get stat modifier ignores other stats

CategoryAbility
StatusPassing
Testtests/test_status_effects.py::test_get_stat_modifier_ignores_other_stats

Duban has a PWR debuff and a DEF debuff; querying "pwr" returns only the PWR modifier.

Preconditions

  • phase_counter=1

  • Lane 0: P2's Duban (#001)

  • Duban has effects: "pwr" -3 and "def" -2 (both expires_phase=1)

Action

  • get_stat_modifier(state, duban, "pwr")

Expected Postconditions

  • Returns -3 (only the PWR effect, ignores the DEF effect)

Assertions

assert result == -3