summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-25 12:06:47 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-25 12:06:47 +0200
commit52da66148c4adae6f83e6e8baa62fdec6f776f9d (patch)
tree5e11fe3f69a1bedc30b475ec59bdd17fea19aa92
parenta883830f6370f0e7c27132641d69d6b8d5904a0f (diff)
downloadtime-of-crisis-52da66148c4adae6f83e6e8baa62fdec6f776f9d.tar.gz
Don't show "Ambitus?" prompt if automatic success possible.
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 76acbaa..7af1777 100644
--- a/rules.js
+++ b/rules.js
@@ -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)) {