summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-07 13:15:46 +0200
committerTor Andersson <tor@ccxvii.net>2024-07-07 13:15:46 +0200
commit30943675d38a6385b0d51a389e7be028b1dfb3e8 (patch)
tree960edf2e01b2ae363c79f2b6cdbf95eed932c5e9
parent1521968d143826fb889a4e73e4742d8823e81f61 (diff)
downloadtime-of-crisis-30943675d38a6385b0d51a389e7be028b1dfb3e8.tar.gz
reset ambitus correctly
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
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"