summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files 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()