Vepar
Demon of Storms
Unit #114
| HP | PWR | CP | Speed | Range | Tier |
|---|---|---|---|---|---|
| 12 (+6) | 5 (+3) | 3 (+2) | Slow | Local | B |
Abilities
Digest — 1 AP
h: Digest: 1 AP - a: e: At the end of this Main Phase, if Vepar is alive, you may Fatally Wound a Local Demon whose remaining HP is less than or equal to 3pk. Ignore their CP for the purposes of scoring.
Engine Implementation
def _vepar_digest(
state: GameState, demon: DemonInstance, targets, choices, rng
) -> GameState:
"""#114 Vepar — Digest
Start of Turn, 1 AP, (exhaust): Status: At the end of this Main Phase, if Vepar
is alive, you may Fatally Wound a Local Demon whose remaining HP is <= 3×PWR.
Ignore their CP for the purposes of scoring.
Applies "digest_pending" status marker to Vepar (value = 3 * PWR).
Turn sequence reads at phase end, checks Vepar alive, finds eligible target,
and fatally wounds it with cp_ignore status.
"""
from engine.operations import get_effective_pwr
from engine.status_effects import apply_status
pwr = get_effective_pwr(state, demon)
threshold = 3 * pwr
state = apply_status(state, demon, demon, "digest_pending", threshold)
return state
register_ability("114", 0, _vepar_digest)