Skip to main content

✅ Vine does not spawn for low cp

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestVineCrystalParasite::test_vine_does_not_spawn_for_low_cp

Vine does NOT spawn Crystal Parasite when a < 3 CP demon dies.

Preconditions

  • Lane 0: P1's Vine (#085, NOT fatally_wounded)

  • Lane 1: P2's Gamigin (#031, CP=2) — fatally_wounded (dying)

  • CP=2 is BELOW the 3 CP threshold.

  • P1's familiar_deck contains "085_1"

Action

  • fire FATALLY_WOUNDED with target=Gamigin (CP=2 < threshold)
result = fire_event(state, event)

parasites = [d for d in result.demons if d.unit_id == "085_1"]

Expected Postconditions

  • No Crystal Parasite deployed

  • P1's familiar_deck: "085_1" still present (not deployed)

Assertions

assert len(parasites) == 0, (
f"Vine must NOT spawn Crystal Parasite for a {2}-CP demon (threshold is 3). "
f"Found {len(parasites)} parasites."
)
assert "085_1" in result.players[Side.PLAYER_1].familiar_deck, (
"085_1 must remain in familiar_deck — no trigger fired."
)