summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index de2aeaf..bb1fc72 100644
--- a/rules.js
+++ b/rules.js
@@ -4327,7 +4327,7 @@ function goto_determine_order_of_influence() {
log("Order of influence")
// Turn cards face-up (and turn bluff cards face down again)
- for (let pow of POWER_FROM_POLITICAL_STAGE) {
+ for (let pow of all_major_powers) {
for (let i = 0; i < game.face_down[pow].length;) {
let c = game.face_down[pow][i]
if (is_trump_card(c)) {
@@ -4337,6 +4337,13 @@ function goto_determine_order_of_influence() {
++i
}
}
+ }
+
+ // Reveal
+ let list = POWER_FROM_POLITICAL_STAGE.slice()
+ list.reverse()
+ list.sort((a,b) => count_influence(b) - count_influence(a))
+ for (let pow of list) {
if (game.face_down[pow].length > 0)
log(">" + power_name[pow] + " " + format_card_list(game.face_down[pow]) + " (bluff)")
if (game.face_up[pow].length > 0)