fix: set hand to nil when drawing cards

main
LeRoyce Pearson 2024-02-15 20:07:32 -07:00
parent d39e6a2585
commit 76f62a5e59
1 changed files with 1 additions and 0 deletions

View File

@ -258,6 +258,7 @@ function update()
if not last_left and hover then if not last_left and hover then
if not exhausted and hover[1]==1 and left then if not exhausted and hover[1]==1 and left then
hand=nil
draw_cards_to(stacks[1],stacks[2],3) draw_cards_to(stacks[1],stacks[2],3)
if #stacks[1]==0 then if #stacks[1]==0 then
exhausted=true exhausted=true