From e52b645aa489890b1df3ac2598fa80df780ea928 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sun, 9 Feb 2025 18:05:52 +0000 Subject: Fix Teformer and opponent events --- rules.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index a1a89ee..3a2a03c 100644 --- a/rules.js +++ b/rules.js @@ -3744,6 +3744,7 @@ function end_round() { card_check = card_check.sort((a, b) => a - b) if (check_duplicates(card_check)) { const duplicates = find_duplicates(card_check) + console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.persistent_events', game.persistent_events, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) throw new Error(`Duplicate cards detected: ${duplicates.join(', ')}`) } if (game.turn <= 3) { @@ -6715,6 +6716,13 @@ states.vm_play_event_from_discard = { log(`Chose C${card}.`) else log(`${game.active} chose C${card}.`) + if (this_card() === C_REFORMER_REHABILITATED) { + if ( + (game.active === DEM && cards[card].side === 'C') || + (game.active === COM && cards[card].side === 'D') + ) + change_player() + } game.vm_event = card game.vm_available_ops = cards[card].ops game.discard = false -- cgit v1.2.3