summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index bad7207..279d191 100644
--- a/rules.js
+++ b/rules.js
@@ -2797,9 +2797,18 @@ function get_aftermath_roll() {
if (rallies.includes(game.played_power_card) || game.proxy_power_card === 'Rally in the Square') { rally_win = 2}
if (petitions.includes(game.played_power_card) || game.proxy_power_card === 'Petition') { petition_win = 2}
let modified_roll = roll + game.raised_stakes + rally_win - petition_win
- if (game.active === DEM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) {
- logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`)
- modified_roll ++
+
+ // Special check for Yakovlev Counsels Gobachev. Applies only if Democrat wins, so only if Com is doing support loss and if Dem is doing VP roll
+ if (game.state === 'support_loss') {
+ if (game.active === COM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) {
+ logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`)
+ modified_roll ++
+ }
+ } else {
+ if (game.active === DEM && game.persistent_events.includes(C_YAKOVLEV_COUNSELS_GORBACHEV)) {
+ logi(`+1 from C${C_YAKOVLEV_COUNSELS_GORBACHEV}`)
+ modified_roll ++
+ }
}
if (modified_roll < 0) {modified_roll = 0}
else if (modified_roll > 7) {modified_roll = 7}
@@ -2822,8 +2831,8 @@ function get_aftermath_roll() {
function add_to_persistent_events(card) {
game.persistent_events.push(card)
remove_from_discard(card)
- let silent_cards = [C_SYSTEMATIZATION, C_FOREIGN_CURRENCY_DEBT_BURDEN, C_SOLIDARITY_LEGALIZED]
- if (!silent_cards.includes(card)) {log(`C${card}:`)}
+ //let silent_cards = [C_SYSTEMATIZATION, C_FOREIGN_CURRENCY_DEBT_BURDEN]
+ if (is_auto_resolve(card)) {log_gap(`C${card}:`)}
}
function permanently_remove(card) {