Skip to main content

✅ Hippolyta muscle magic applies ap cost and pwr buffs

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_hippolyta_muscle_magic_applies_ap_cost_and_pwr_buffs

Hippolyta's Muscle Magic applies +2 AP Cost and +3 PWR to target.

Preconditions

  • P1 Main Phase, P1 has 3 AP

  • Lane 0: P1's Hippolyta (#073) — READIED

  • Lane 1: P2's Sabnock (#003) — READIED, base PWR=2

Action

  • Execute Hippolyta's Muscle Magic (ability idx=0, 1 AP, ready, 1x) targeting Sabnock
result = execute_ability(state, hippolyta_on_field, ability_idx=0, targets=[sabnock_on_field])
effects = {e.stat: e.value for e in get_active_effects_on(result, sabnock_after)}

Expected Postconditions

  • Hippolyta: NOT exhausted (ready cost)

  • Sabnock: has status "ap_cost" +2

  • Sabnock: has status "pwr" +3 (effective PWR becomes 2+3=5)

  • P1 AP: 2 (spent 1)

Assertions

assert hippolyta_after.state == DemonState.READIED
assert effects.get("ap_cost") == 2
assert effects.get("pwr") == 3
assert result.players[Side.PLAYER_1].ap == 2