summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-27 20:56:02 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-27 20:56:02 +0000
commitd6f177f42747ce702bfa763601461969605c4bba (patch)
tree6b320fb1902550837fdf881fba7f10c343bf7982
parent2c500cc15f81a577b470643c5b92c4522b7d185b (diff)
download1989-dawn-of-freedom-d6f177f42747ce702bfa763601461969605c4bba.tar.gz
Fix Ligachev when Gorby played for event
-rw-r--r--rules.js25
1 files changed, 7 insertions, 18 deletions
diff --git a/rules.js b/rules.js
index 092e30c..edbbf00 100644
--- a/rules.js
+++ b/rules.js
@@ -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)