Skip to main content

✅ Recursive trigger depth limit hard stop

CategoryAbility
StatusPassing
Testtests/test_events.py::test_recursive_trigger_depth_limit_hard_stop

fire_event called at depth >= MAX_TRIGGER_DEPTH returns immediately

Preconditions

  • Trigger registered for DAMAGE_DEALT on unit "001"

  • Handler appends to action_history.

  • P1's Duban (#001) on field

Action

  • fire_event(state, event, _depth=MAX_TRIGGER_DEPTH)

Expected Postconditions

  • Returned state is identical to input (no handler called)

  • action_history remains empty

Assertions

assert result.action_history == []