diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-27 20:56:02 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-27 20:56:02 +0000 |
commit | d6f177f42747ce702bfa763601461969605c4bba (patch) | |
tree | 6b320fb1902550837fdf881fba7f10c343bf7982 | |
parent | 2c500cc15f81a577b470643c5b92c4522b7d185b (diff) | |
download | 1989-dawn-of-freedom-d6f177f42747ce702bfa763601461969605c4bba.tar.gz |
Fix Ligachev when Gorby played for event
-rw-r--r-- | rules.js | 25 |
1 files changed, 7 insertions, 18 deletions
@@ -2984,19 +2984,6 @@ function select_card(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}`) game.vp -= 3 @@ -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) |