summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 41f60e0..2da9fbd 100644
--- a/rules.js
+++ b/rules.js
@@ -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
}