From 52da66148c4adae6f83e6e8baa62fdec6f776f9d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 25 Jul 2023 12:06:47 +0200 Subject: Don't show "Ambitus?" prompt if automatic success possible. --- rules.js | 9 ++++++--- 1 file 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)) { -- cgit v1.2.3