diff options
-rw-r--r-- | rules.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3404,7 +3404,6 @@ function event_is_playable(card) { } // Then check normally else if (game.playable_cards.includes(card)) { - console.log('in playable cards', game.playable_cards) return true } else if (cards[card].playable) { return true @@ -4091,7 +4090,7 @@ function check_systematization() { if (game.systematization > 0) { game.valid_spaces = game.valid_spaces.filter(n => n !== game.systematization) } -} +} function this_card() { return game.vm_event > 0 ? game.vm_event : game.played_card @@ -7948,10 +7947,14 @@ states.vm_tst_3 = { gen_action_card(card) } } + console.log('game.valid_cards', game.valid_cards) }, card(card) { push_undo() discard(card) + console.log('card', card,'game.valid_cards', game.valid_cards) + game.valid_cards.splice(game.valid_cards.indexOf(card), 1) + console.log('game.valid_cards', game.valid_cards) game.temp ++ if (game.temp === 2) { game.valid_cards = [] |