summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-09 00:45:40 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-09 00:45:40 +0200
commitf1aebd2428f22a26246c053bfffa19e08d30840e (patch)
tree6585384612c178f0f97caea574026e018a0e9618
parenta9ad49b147faa4bfaf43ab4b4ad5a66541a1ad0a (diff)
downloadtime-of-crisis-f1aebd2428f22a26246c053bfffa19e08d30840e.tar.gz
Fix skipping end of turn at end of game.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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) {