Skip to main content

✅ Crystal infection without status would give cp

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestVineCrystalInfection::test_crystal_infection_without_status_would_give_cp

Control test — killing Flauros normally DOES give CP.

Preconditions

  • P1 Main Phase, P1 has 6 AP, P1 has 0 CP

  • Lane 0: P1's Flauros (#013) — HP=15, damage=15, fatally_wounded=True, CP=4

Action

See code below.

result = resolve_fatally_wounded(state, flauros_p)

Expected Postconditions

  • When resolve_fatally_wounded runs, P1 gains 4 CP (no cp_override_zero)

Assertions

assert result.players[Side.PLAYER_1].cp == 4, (
f"Without cp_override_zero, P1 should gain Flauros's CP=4. "
f"Got {result.players[Side.PLAYER_1].cp}"
)