From d03501279ceff58e0c46772e6e9db0e088d6aa01 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 28 Nov 2024 18:23:41 +0000 Subject: Fix Ligachev check --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index fc5486f..0c2e960 100644 --- a/rules.js +++ b/rules.js @@ -640,7 +640,7 @@ states.play_card ={ }, event() { push_undo() - check_ligachev_event() + check_ligachev_event(game.played_card) log_gap(`Played C${game.played_card} for the event`) game.vm_infl_to_do = false game.return = game.active @@ -2996,7 +2996,7 @@ function check_ligachev_non_event() { } } -function check_ligachev_event() { +function check_ligachev_event(card) { if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV)) { if (card !== C_GORBACHEV_CHARMS_THE_WEST) { log(`-3 VP from C${C_LIGACHEV}`) @@ -7855,7 +7855,7 @@ states.vm_tst_8 = { }, event() { push_undo() - check_ligachev_event() + check_ligachev_event(game.played_card) log(`C${game.played_card}:`) game.vm_event_to_do = false game.return_state = 'vm_tst_8' -- cgit v1.2.3