diff options
-rw-r--r-- | rules.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |