From bffbd296149a095be56d11e380993833727fa082 Mon Sep 17 00:00:00 2001 From: geemili Date: Sun, 18 Feb 2024 00:53:56 -0700 Subject: [PATCH] fix: make runs expect the correct suit --- rummy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rummy.lua b/rummy.lua index 56b54f1..72a9cfe 100644 --- a/rummy.lua +++ b/rummy.lua @@ -401,7 +401,7 @@ function rummy_is_valid_meld(stack) end end - local expected_suit=stack[1].rank + local expected_suit=stack[1].suit local is_valid_run=true for i=2,#stack do local card=stack[i]