summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-27 17:33:25 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit0513bcc2d851d74521b9dabd8809fc333e9d0b84 (patch)
tree610542e60e1132a4cc7ade93c3bb224006d10a56
parenteaa39d34fc8f20b5e996aa896f338d765456ad60 (diff)
downloadwashingtons-war-0513bcc2d851d74521b9dabd8809fc333e9d0b84.tar.gz
fix deck reshuffle
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 99bb69d..5a3cd7c 100644
--- a/rules.js
+++ b/rules.js
@@ -252,6 +252,8 @@ function reshuffle_deck() {
// Reconstitute deck, minus removed cards, cards in hand, war_ends, and reinforcement cards.
// Rule 6.1B clarification.
+ game.deck = []
+
for (let c = 1; c <= 110; ++c) {
if (game.a_hand.includes(c))
continue
@@ -1102,7 +1104,6 @@ function goto_start_year() {
}
if (has_flag(F_RESHUFFLE)) {
- log("Re-shuffled deck.")
reshuffle_deck()
}