diff options
-rw-r--r-- | rules.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -6843,10 +6843,10 @@ states.vm_goodbye_lenin_ops = { states.vm_honecker = { prompt() { - if (game.valid_cards.length === 0 && game.temp === 0) { + if (game.valid_cards.length === 0) { view.prompt = 'Honecker: No valid cards to choose.' gen_action('pass') - } else if (game.temp === 0) { + } else { view.prompt = 'Honecker: Choose a card to add to your hand.' for (let card of game.valid_cards) { gen_action_card(card) @@ -6858,7 +6858,6 @@ states.vm_honecker = { push_undo() game.valid_cards = [] log(`Took C${card} into hand`) - game.temp = card let card_index = game.strategy_discard.indexOf(card) game.strategy_discard.splice(card_index, 1) game.communist_hand.push(card) @@ -7947,14 +7946,11 @@ 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 = [] |