From f1aebd2428f22a26246c053bfffa19e08d30840e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 9 Jul 2023 00:45:40 +0200 Subject: Fix skipping end of turn at end of game. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index df8834d..41f60e0 100644 --- a/rules.js +++ b/rules.js @@ -4790,7 +4790,7 @@ function goto_buy_trash_discard() { if (game.end) { // Skip rest of turn... for (let c of game.played) - set_add(discard, c) + set_add(current_discard(), c) game.played.length = 0 goto_end_of_turn() } else if (current_hand().length > 0) { -- cgit v1.2.3