Skip to main content

✅ Quick not available for active player

CategoryAbility
StatusPassing
Testtests/test_response_windows.py::TestQuickResponseWindow::test_quick_not_available_for_active_player

P1 is the active player. P1's Quick actions should NOT appear

Preconditions

  • P1 Main Phase

  • quick_window_open = True

  • Lane 0: P1's Sabnock (#003) — READIED

Action

See code below.

sabnock = make_demon("003", lane=0, owner=Side.PLAYER_1)
state = _make_state(sabnock)
state.quick_window_open = True

# P1 is the active player — Quick response is for P2
# P1's Quick actions during own phase go through get_legal_actions, not response
actions = get_response_actions(state, Side.PLAYER_1, AbilityTiming.QUICK)
non_pass = [a for a in actions if a[0] != "pass"]

Expected Postconditions

  • get_response_actions for P1 with Quick timing returns only pass

  • (P1's Quick actions are used during own turn via get_legal_actions, not responses)

Assertions