diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -114,7 +114,6 @@ exports.view = function (state, role) { let this_card = game.deck[0] | 0 let deck_size = Math.max(0, game.deck.length - 1) let card_back = next_card_back() - view = { state: game.state, prompt: null, @@ -408,6 +407,9 @@ 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) |