From d6f177f42747ce702bfa763601461969605c4bba Mon Sep 17 00:00:00 2001 From: iainp5 Date: Wed, 27 Nov 2024 20:56:02 +0000 Subject: Fix Ligachev when Gorby played for event --- rules.js | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/rules.js b/rules.js index 092e30c..edbbf00 100644 --- a/rules.js +++ b/rules.js @@ -2983,19 +2983,6 @@ function select_card(card){ game.available_ops = get_card_ops(card) } -function check_ligachev_non_event() { - if (game.active === DEM && game.persistent_events.includes(99) && card !== C_GORBACHEV_CHARMS_THE_WEST) { - log(`-3 VP from C${C_LIGACHEV}`) - game.vp -= 3 - if (check_vp()) { - return - } - game.persistent_events = game.persistent_events.filter(n => n !== 99) - game.strategy_removed.push(C_LIGACHEV) - } - game.state = 'play_card' -} - function check_ligachev_non_event() { if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV)) { log(`-3 VP from C${C_LIGACHEV}`) @@ -3010,11 +2997,13 @@ function check_ligachev_non_event() { } function check_ligachev_event() { - if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV) && card !== C_GORBACHEV_CHARMS_THE_WEST) { - log(`-3 VP from C${C_LIGACHEV}`) - game.vp -= 3 - if (check_vp()) { - return + if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV)) { + if (card !== C_GORBACHEV_CHARMS_THE_WEST) { + log(`-3 VP from C${C_LIGACHEV}`) + game.vp -= 3 + if (check_vp()) { + return + } } game.persistent_events = game.persistent_events.filter(n => n !== C_LIGACHEV) game.strategy_removed.push(C_LIGACHEV) -- cgit v1.2.3