✅ Locust death fires fatally wounded event
| Category | Regression |
| Status | Passing |
| Test | tests/test_abilities_familiars.py::test_locust_death_fires_fatally_wounded_event |
Tests interaction between Duban.
Preconditions
-
Lane 0: P1's Locusts A (058_1) — READIED.
-
A custom tracker registered on FATALLY_WOUNDED.
Action
-
Resolve Locust as fatally wounded.
-
Fire FATALLY_WOUNDED event manually.
fire_event(
state,
GameEvent(
event_type=EventType.FATALLY_WOUNDED,
source=None,
target=locust_ref,
value=0,
side=Side.PLAYER_1,
lane=0,
),
)
Expected Postconditions
- The FATALLY_WOUNDED event was fired with a familiar as the dying demon.
Assertions
assert len(fired_events) > 0, (
"FATALLY_WOUNDED event must fire with familiar as target. "
"Familiars ARE demons — any 'demon dies' trigger should respond."
)
assert fired_events[0].target.is_familiar, "The dying demon in the event must be a familiar."