Skip to content

Commit 7ae211e

Browse files
committed
fix: remove set_ranks and align_cards from rearrange_hand
1 parent 77bc507 commit 7ae211e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lua/api.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,14 +554,12 @@ API.functions["rearrange_hand"] = function(args)
554554
end
555555
end
556556

557-
-- Update ranks and realign the hand for correct rendering
558-
G.hand:set_ranks()
559-
G.hand:align_cards()
560-
561557
---@type PendingRequest
562558
API.pending_requests["rearrange_hand"] = {
563559
condition = function()
564560
return G.STATE == G.STATES.SELECTING_HAND
561+
and #G.E_MANAGER.queues.base < EVENT_QUEUE_THRESHOLD
562+
and G.STATE_COMPLETE
565563
end,
566564
action = function()
567565
local game_state = utils.get_game_state()

0 commit comments

Comments
 (0)