✅ End main phase resolves fatally wounded
| Category | Regression |
| Status | Passing |
| Test | tests/test_turn_sequence.py::test_end_main_phase_resolves_fatally_wounded |
Regression (confusions #11, #16): CP goes to the OWNER of the dying demon.
Preconditions
-
P1 Main Phase.
-
P1's Naberius (#033): HP=12, damage=12 (Fatally Wounded).
-
P1 CP = 0. Naberius CP value = 3.
Action
- end_main_phase(state, Side.PLAYER_1)
Expected Postconditions
-
Naberius removed from board (moved to P1's graveyard).
-
P1 CP = 3 (gained Naberius's CP value — P1 OWNED the dying demon).
-
P2 CP = 0 (killer gains nothing — CP is a loss condition on the owner).
Assertions
assert len(result.demons) == 0
assert result.players[Side.PLAYER_1].cp == 3
assert result.players[Side.PLAYER_2].cp == 0
assert "033" in result.players[Side.PLAYER_1].graveyard