Skip to main content

✅ Multiple passives for same unit stack

CategoryAbility
StatusPassing
Testtests/test_abilities_registry.py::test_multiple_passives_for_same_unit_stack

Two passive modifiers registered for the same unit. Both sum.

Preconditions

  • Passive for "001" (ability 0): {"def": 3}

  • Passive for "001" (ability 1): {"def": 2}

  • Duban on field, not fused

Action

  • get_passive_modifiers(state, duban, "def")

Expected Postconditions

  • Returns 5 (3 + 2 = 5, both passives stacked).

Assertions

assert result == 5