Skip to main content

✅ White tiger swiftness moves self

CategoryAbility
StatusPassing
Testtests/test_abilities_familiars.py::test_white_tiger_swiftness_moves_self

Swiftness moves White Tiger 1 lane.

Preconditions

  • Lane 0: P1's White Tiger (084_3) — READIED.

Action

  • Execute Swiftness (ability 1) with direction=1.
from engine.abilities import execute_ability

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

tiger = make_familiar_demon("084_3", lane=0, owner=Side.PLAYER_1)
state = place_demon(state, tiger)
tiger = state.demons[-1]

new_state = execute_ability(state, tiger, 1, targets=[], choices={"direction": 1})

tiger_after = next(d for d in new_state.demons if d.unit_id == "084_3")

Expected Postconditions

  • White Tiger lane = 1.

Assertions

assert tiger_after.lane == 1, f"White Tiger should be in lane 1, got {tiger_after.lane}"