Skip to main content

✅ Wolf hidden path moves barbatos

CategoryAbility
StatusPassing
Testtests/test_abilities_familiars.py::test_wolf_hidden_path_moves_barbatos

Hidden Path moves Barbatos to Wolf's lane.

Preconditions

  • Lane 0: P1's Wolf (111_1) — READIED.

  • Lane 2: P1's Barbatos (111).

  • P1 AP: 3.

Action

  • Execute Hidden Path (ability 1 on 111_1): 1 AP, ready, 1x.
from engine.abilities import execute_ability

state = make_game_state()
state.players[Side.PLAYER_1].ap = 3
state.current_player = Side.PLAYER_1
state.quick_window_open = True

wolf = make_familiar_demon("111_1", lane=0, owner=Side.PLAYER_1)
state = place_demon(state, wolf)
wolf = state.demons[-1]

barbatos = make_demon("111", lane=2, owner=Side.PLAYER_1)
state = place_demon(state, barbatos)
barbatos = state.demons[-1]

new_state = execute_ability(state, wolf, 1, targets=[])

barbatos_after = next(d for d in new_state.demons if d.unit_id == "111")

Expected Postconditions

  • Barbatos lane = 0 (moved to Wolf's lane).

  • P1 AP = 2.

Assertions

assert barbatos_after.lane == 0, f"Barbatos should be in lane 0, got {barbatos_after.lane}"
assert new_state.players[Side.PLAYER_1].ap == 2