Skip to content

Commit f9c6f04

Browse files
committed
fix(api): add event queue threshold to skip_or_select_blind
1 parent 6f315e1 commit f9c6f04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lua/api.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ API.functions["skip_or_select_blind"] = function(args)
356356
---@type PendingRequest
357357
API.pending_requests["skip_or_select_blind"] = {
358358
condition = function()
359-
return G.GAME and G.GAME.facing_blind and G.STATE == G.STATES.SELECTING_HAND
359+
return G.GAME
360+
and G.GAME.facing_blind
361+
and G.STATE == G.STATES.SELECTING_HAND
362+
and #G.E_MANAGER.queues.base < EVENT_QUEUE_THRESHOLD
360363
end,
361364
action = function()
362365
local game_state = utils.get_game_state()

0 commit comments

Comments
 (0)