Skip to main content

✅ Beleth cp goes to owner not killer

CategoryRegression
StatusPassing
Testtests/test_abilities_complex.py::TestBeleth::test_beleth_cp_goes_to_owner_not_killer

Regression: Confusions #11, #16 — CP is a loss condition; OWNER gains on their demon's CP cost.

Preconditions

  • P1 Main Phase, P1 has 4 AP, P1 CP = 0, P2 CP = 0

  • Lane 0: P1's Beleth (#110), READIED

  • X = 2

Action

  • Beleth uses Scorched Earth (X=2), gains 2 CP
result = execute_ability(
state, beleth_p, ability_idx=1,
targets=[],
choices={"x": 2}
)

Expected Postconditions

  • P1 CP: 2 (Beleth's OWNER suffers the CP cost)

  • P2 CP: 0 (opponent gains NOTHING)

Assertions

assert result.players[Side.PLAYER_1].cp == 2, (
f"P1 (owner) must gain 2 CP. Got {result.players[Side.PLAYER_1].cp}."
)
assert result.players[Side.PLAYER_2].cp == 0, (
f"P2 must gain 0 CP (opponent gains NOTHING). Got {result.players[Side.PLAYER_2].cp}."
)