Skip to main content

✅ Nahash forbidden fruit applies def and ap cost debuffs

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_nahash_forbidden_fruit_applies_def_and_ap_cost_debuffs

Nahash applies Forbidden Fruit to an enemy demon.

Preconditions

  • P1 Main Phase, P1 has 5 AP

  • Lane 0: P1's Nahash (#009) — HP=12, READIED

  • Lane 0: P2's Duban (#001) — HP=6, READIED

  • No status effects active

Action

  • Execute Nahash's Forbidden Fruit (ability[0], 2 AP, exhaust) targeting Duban
result = execute_ability(state, nahash_on_field, ability_idx=0, targets=[duban_on_field])

Expected Postconditions

  • Duban: has status "def" -2 (expires this phase)

  • Duban: has status "ap_cost_when_targeted" -2 (actions TARGETING Duban cost -2 AP)

  • Nahash: EXHAUSTED

  • P1 AP: 3 (was 5, spent 2)

Assertions

assert def_effects[0].value == -2
assert ap_target_effects[0].value == -2
assert result.players[Side.PLAYER_1].ap == 3