summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-27 15:33:42 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-27 15:42:13 +0200
commit71ef36a57b1cb6cf9e0a93012a550c4d7f3e860d (patch)
tree4557d1c291fa889e0ef6f7f7aa31f9e4d5b763d8
parent34205ff9fdd2492efe8b213fe31e63d98666012b (diff)
downloadandean-abyss-71ef36a57b1cb6cf9e0a93012a550c4d7f3e860d.tar.gz
Fix bug with advancing to next card after propaganda.
We were calling the wrong function, and missing the double propaganda in a row exception.
-rw-r--r--rules.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index e3ca589..1d2f198 100644
--- a/rules.js
+++ b/rules.js
@@ -2491,6 +2491,8 @@ function resume_event_card() {
}
function end_card() {
+ clear_undo()
+
adjust_eligibility(GOVT)
adjust_eligibility(FARC)
adjust_eligibility(AUC)
@@ -2501,9 +2503,12 @@ function end_card() {
log_h1("C73")
log("Skipped.")
array_remove(game.deck, 0)
+ if (is_final_propaganda_card()) {
+ goto_final_victory()
+ return
+ }
}
- clear_undo()
array_remove(game.deck, 0)
goto_card()
}
@@ -6763,8 +6768,7 @@ function goto_reset_phase() {
if (is_final_propaganda_card()) {
goto_final_victory()
} else {
- array_remove(game.deck, 0)
- goto_card()
+ end_card()
}
}