diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-25 12:06:47 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-25 12:06:47 +0200 |
commit | 52da66148c4adae6f83e6e8baa62fdec6f776f9d (patch) | |
tree | 5e11fe3f69a1bedc30b475ec59bdd17fea19aa92 | |
parent | a883830f6370f0e7c27132641d69d6b8d5904a0f (diff) | |
download | time-of-crisis-52da66148c4adae6f83e6e8baa62fdec6f776f9d.tar.gz |
Don't show "Ambitus?" prompt if automatic success possible.
-rw-r--r-- | rules.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2445,9 +2445,12 @@ function gen_place_governor_spend(ip, enough, action) { view.selected_region = game.where view.selected_governor = game.selected_governor - if (game.ambitus < game.count && has_card_event(CARD_P2X)) { - view.prompt += " Ambitus?" - gen_card_event(CARD_P2X) + // Don't prompt "Ambitus" if already enough votes for automatic success. + if (!is_neutral_province(game.where) || enough > 0) { + if (game.ambitus < game.count && has_card_event(CARD_P2X)) { + view.prompt += " Ambitus?" + gen_card_event(CARD_P2X) + } } if (is_neutral_province(game.where)) { |