Skip to main content

✅ Vapula converts damage to healing

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestVapulaDamageToHealing::test_vapula_converts_damage_to_healing

Vapula deals damage to a target — passive converts it to healing.

Preconditions

  • P1 Main Phase, P1 has 6 AP

  • Lane 0: P1's Vapula (#100) — READIED

  • Lane 0: P2's Duban (#001) — 6 HP, 5 damage (already wounded)

Action

  • Fire DAMAGE_DEALT for Vapula -> Duban, value=3

Expected Postconditions

  • Duban's damage: max(0, 5 - 6) = 0 (2*3=6 removed, clamped at 0)

  • Vapula: READIED (passive does not exhaust Vapula)

Assertions

assert duban_after.damage == 0, (
f"Vapula's passive should remove 6 damage (2*3) from Duban. Got {duban_after.damage}."
)