From 30943675d38a6385b0d51a389e7be028b1dfb3e8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 Jul 2024 13:15:46 +0200 Subject: reset ambitus correctly --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index f7cb31f..834aac3 100644 --- a/rules.js +++ b/rules.js @@ -2541,6 +2541,7 @@ states.praetorian_guard = { let enough = Math.max(0, need - extra - dice) spend_military(enough) game.count += enough + game.ambitus = 0 auto_replace_neutral_governor(true) }, roll() { @@ -2582,6 +2583,7 @@ function roll_to_place_governor(praetorian_guard) { if (game.ambitus > 0) { log("Ambitus") logi(new Array(game.ambitus).fill("B0").join(" ")) + game.ambitus = 0 } if (have >= need) { @@ -2612,6 +2614,7 @@ function auto_replace_neutral_governor(praetorian_guard) { if (game.ambitus > 0) { log("Ambitus") logi(new Array(game.ambitus).fill("B0").join(" ")) + game.ambitus = 0 } goto_place_governor_success() @@ -2683,6 +2686,7 @@ states.praetorian_guard_italia = { region(_) { push_undo() spend_military(1) + game.ambitus = 0 game.count = 1 game.where = ITALIA game.state = "praetorian_guard" -- cgit v1.2.3