From 67c3ecadec2bcfe074014ad72a373457049ca8c1 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 3 Nov 2024 16:46:35 +0000 Subject: Fix The Wall --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 1a1896d..35494ec 100644 --- a/rules.js +++ b/rules.js @@ -2211,7 +2211,7 @@ function do_sc(space) { if (adj.com_adj > 0) { logi(`+${adj.com_adj} adjacency`) } - game.persistent_events = game.persistent_events.filter(n => n !== C_THE_WALL) + permanently_remove(C_THE_WALL) // Standard adjacency } else { @@ -4601,7 +4601,7 @@ function vm_common_european_home() { function vm_dash_for_the_west() { game.valid_cards = [] for (let c of game.strategy_discard) { - if (cards[c].side === 'D' && cards[c].remove === 1 && (cards[c].playable || game.playable_cards.includes(c))) { + if (cards[c].side === 'D' && cards[c].remove && (cards[c].playable || game.playable_cards.includes(c))) { game.valid_cards.push(c) } } @@ -5264,10 +5264,10 @@ function vm_yakovlev_counsels_gorbachev() { function vm_permanently_remove () { // Check if the event is being played as the result of another card, e.g. Dash for the West, is a card which should be removed, and which hasn't already been removed! - if (game.vm_event !== 0 && cards[game.vm_event].remove === 1 && !game.strategy_removed.includes(game.vm_event)) { + if (game.vm_event !== 0 && cards[game.vm_event].remove && !game.strategy_removed.includes(game.vm_event)) { permanently_remove(game.vm_event) } - if (cards[game.played_card].remove ===1 && !game.strategy_removed.includes(game.played_card)) { + if (cards[game.played_card].remove && !game.strategy_removed.includes(game.played_card)) { permanently_remove(game.played_card) } /*This means the card that called the event being played is also removed if relevant. Think this makes sense */ vm_next() -- cgit v1.2.3