From 3ab5052d0c5e5c1d906b4eb47bdd7011f314bf3b Mon Sep 17 00:00:00 2001 From: geemili Date: Sun, 18 Feb 2024 00:55:34 -0700 Subject: [PATCH] fix: add set `cards_in_meld_draft` equal to an array --- rummy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rummy.lua b/rummy.lua index 72a9cfe..aa800d1 100644 --- a/rummy.lua +++ b/rummy.lua @@ -289,7 +289,7 @@ player_state_action = { player_state_secondary_action = { update=function(point_of_interest) if cards_in_hand:contains(point_of_interest.interest) then - cards_in_meld_draft=CardStack:new(point_of_interest.interest) + cards_in_meld_draft=CardStack:new({ point_of_interest.interest }) elseif point_of_interest.interest=="Discard" then if #cards_in_meld_draft==1 then table.remove(cards_in_hand, cards_in_hand:index_of(cards_in_meld_draft[1]))