summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 8ac2e91..e1dbe25 100644
--- a/rules.js
+++ b/rules.js
@@ -252,7 +252,7 @@ exports.setup = function (seed, scenario, _options) {
cavalry: Array(10).fill(AVAILABLE),
deck: [],
of_gods_and_kings: [null, null, 0],
- discard: [],
+ // discard: [],
order: [],
cmd: {
type: null,
@@ -411,6 +411,10 @@ function end_card() {
}
function update_discard() {
+ if ("discard" in game === false) {
+ game.discard = []
+ }
+
if (this_card() === 45)
game.discard = [45]
else if (this_card() === 46)