Skip to main content

✅ Tyr gleipnir exhausts target and applies def debuff

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_tyr_gleipnir_exhausts_target_and_applies_def_debuff

Tyr's Gleipnir exhausts a local target and applies -2 DEF.

Preconditions

  • P1 Main Phase, P1 has 5 AP

  • Lane 0: P1's Tyr (#048) — READIED

  • Lane 0: P2's Sabnock (#003) — READIED (local target)

Action

  • Execute Tyr's Gleipnir (ability idx=1, 2 AP, exhaust) targeting Sabnock
result = execute_ability(state, tyr_on_field, ability_idx=1, targets=[sabnock_on_field])
effects = {e.stat: e.value for e in get_active_effects_on(result, sabnock_after)}

Expected Postconditions

  • Sabnock: EXHAUSTED

  • Sabnock: has status "def" -2

  • Tyr: EXHAUSTED

  • P1 AP: 3 (spent 2)

Assertions

assert sabnock_after.state == DemonState.EXHAUSTED
assert effects.get("def") == -2
assert tyr_after.state == DemonState.EXHAUSTED
assert result.players[Side.PLAYER_1].ap == 3