✅ Get triggered abilities sorted
| Category | Ability |
| Status | Passing |
| Test | tests/test_events.py::test_get_triggered_abilities_sorted |
get_triggered_abilities returns Fast demon before Slow demon.
Preconditions
-
Trigger for DAMAGE_DEALT on unit "001" (Duban, speed_value=1, Fast)
-
Trigger for DAMAGE_DEALT on unit "004" (Thanatos, speed_value=3, Slow)
-
Slow trigger registered FIRST (to confirm sort overrides registration order)
-
Both demons on field
Action
- get_triggered_abilities(state, GameEvent(DAMAGE_DEALT, ...))
Expected Postconditions
-
Returns list of length 2
-
result[0] demon is Duban ("001", Fast)
-
result[1] demon is Thanatos ("004", Slow)
Assertions
assert demon0.unit_id == "001" # Fast
assert demon1.unit_id == "004" # Slow