✅ Trigger only for demons on field
| Category | Ability |
| Status | Passing |
| Test | tests/test_events.py::test_trigger_only_for_demons_on_field |
A trigger registered for unit "001" does NOT fire if Duban is not
Preconditions
-
Trigger registered for DAMAGE_DEALT on unit "001"
-
Handler appends "fired" to action_history.
-
Board is empty (no demons deployed)
Action
- fire_event(state, GameEvent(DAMAGE_DEALT, side=PLAYER_1))
Expected Postconditions
-
Handler NOT called
-
Returned state has action_history == [] (unchanged)
Assertions
assert result.action_history == []
assert len(result.demons) == 0