Skip to main content

✅ Resolve fatally wounded fused demon cp

CategoryAbility
StatusPassing
Testtests/test_operations.py::test_resolve_fatally_wounded_fused_demon_cp

A fused demon (Murmur on top of Duban) dies; owner gains base CP + fCP.

Preconditions

  • Lane 0: P1's fused demon — Murmur (#002) on top of Duban (#001)

  • Murmur base CP = 3, Duban fcp = 0, total CP = 3

  • Murmur HP = 9, Duban fhp = 0, total HP = 9

  • P1's fused demon has 9 damage (fatally wounded)

  • P1 CP: 0, P2 CP: 0

Action

  • resolve_fatally_wounded(state, fused_demon)

Expected Postconditions

  • P1 CP: 3 (base 3 + fcp 0 = 3)

  • Fused demon removed from field

Assertions

assert new_state.players[Side.PLAYER_1].cp == 3
assert new_state.players[Side.PLAYER_2].cp == 0
assert len(new_state.demons) == 0