Skip to main content

✅ Shax does not trigger if fatally wounded

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestShaxKillReward::test_shax_does_not_trigger_if_fatally_wounded

Shax is fatally_wounded — trigger must NOT fire (dead demons cannot resolve).

Preconditions

  • Lane 0: P1's Shax (#021) — fatally_wounded=True

  • P2's enemy in lane 0 — being killed by Shax (source=Shax)

  • P1 AP=0

Action

  • fire FATALLY_WOUNDED with source=Shax (fatally_wounded), target=enemy
result = fire_event(state, event)

Expected Postconditions

  • P1 AP remains 0 (no trigger)

  • Shax state unchanged (still whatever it was)

  • CRITICAL: Dead demons (fatally_wounded=True) cannot resolve effects.

Assertions

assert result.players[Side.PLAYER_1].ap == 0, (
"Shax must NOT trigger when fatally_wounded. "
"Dead demons cannot resolve effects. P1 AP must remain 0."
)