Skip to main content

✅ Aamon deploys sword of wrath

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestAamonDeployTrigger::test_aamon_deploys_sword_of_wrath

Aamon enters play and deploys Sword of Wrath.

Preconditions

  • P1 Main Phase

  • Lane 0: P1's Aamon (#096) just deployed

  • P1's familiar_deck contains "096_1" (Sword of Wrath)

Action

  • fire DEMON_DEPLOYED with source=Aamon
result = fire_event(state, event)

sword = [d for d in result.demons if d.unit_id == "096_1"]

Expected Postconditions

  • Sword of Wrath (096_1): deployed in lane 0 (Aamon's lane), P1 owns it

  • "096_1" removed from P1's familiar_deck

Assertions

assert len(sword) == 1, (
f"Sword of Wrath must be deployed when Aamon enters play. "
f"Found {len(sword)} on field."
)
assert sword[0].owner == Side.PLAYER_1, "Sword of Wrath must be owned by P1."
assert sword[0].lane == 0, (
f"Sword of Wrath must deploy in Aamon's lane (0). Got lane {sword[0].lane}."
)
assert "096_1" not in result.players[Side.PLAYER_1].familiar_deck, (
"096_1 must be removed from familiar_deck after deploy."
)