✅ Sword of wrath ap discount after aamon acts
| Category | Ability |
| Status | Passing |
| Test | tests/test_abilities_familiars.py::test_sword_of_wrath_ap_discount_after_aamon_acts |
After Aamon resolves an action, Sword of Wrath gets -1 AP Cost.
Preconditions
-
Lane 0: P1's Aamon (096) — READIED.
-
Lane 0: P1's Sword of Wrath (096_1) — READIED.
Action
- Fire ABILITY_USED event with source=Aamon.
new_state = fire_event(
state,
GameEvent(
event_type=EventType.ABILITY_USED,
source=aamon,
target=None,
value=0,
side=Side.PLAYER_1,
lane=0,
),
)
sword_after = next(d for d in new_state.demons if d.unit_id == "096_1")
ap_mod = get_stat_modifier(new_state, sword_after, "ap_cost")
Expected Postconditions
- Sword of Wrath has -1 ap_cost status.
Assertions
assert ap_mod == -1, f"Sword of Wrath should have -1 ap_cost status after Aamon acts, got {ap_mod}"