diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3569,6 +3569,7 @@ states.demagogue_confirm = { states.demagogue = { inactive: "Demagogue", + demagogue: true, prompt() { prompt("Demagogue: Reveal and return one card to your available pile.") for (let c of current_hand()) @@ -3585,12 +3586,14 @@ states.demagogue = { states.demagogue_done = { inactive: "Demagogue", + demagogue: true, prompt() { prompt("Demagogue: Done.") view.actions.done = 1 }, done() { clear_undo() + game.state = "demagogue" game.current = next_player() if (game.current === game.count) goto_demagogue_reveal() @@ -5412,6 +5415,9 @@ exports.view = function (state, player_name) { view.discard = game.discard[player] } + if (states[game.state].demagogue) + view.current = game.count + save_game() return view } |