From 71ef36a57b1cb6cf9e0a93012a550c4d7f3e860d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 27 Sep 2023 15:33:42 +0200 Subject: Fix bug with advancing to next card after propaganda. We were calling the wrong function, and missing the double propaganda in a row exception. --- rules.js | 10 +++++++--- 1 file 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() } } -- cgit v1.2.3