From 9925fbde2385f345c2ea0a48675f84b1dd492d32 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 10 Jan 2025 15:44:13 +0000 Subject: Fix 2 op TST support check --- rules.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rules.js b/rules.js index 9c9cbe9..4542f26 100644 --- a/rules.js +++ b/rules.js @@ -3970,6 +3970,7 @@ function new_turn() { game.tst_8 = false } delete game.selected_space + delete game.return_state // Remove events that only last one turn @@ -4672,6 +4673,7 @@ function vm_prompt() { } function vm_return() { + console.log('vm_return called') // Remove temporary vm variables delete game.support_check_modifier delete game.vm_max_infl @@ -4698,21 +4700,27 @@ function vm_return() { } function vm_end_event() { + console.log('in vm_end_event, game.return_state', game.return_state, 'game.vm_infl_to_do', game.vm_infl_to_do) if (game.return_state === 'ceausescu_check') { end_round() return } if (game.return !== game.active) { + console.log('1') change_player() } if (game.return_state === 'power_struggle') { + console.log('2') do_valid_cards() } if (game.return_state && game.return_state !== '') { + console.log('3') game.state = game.return_state } else if (game.vm_infl_to_do) { + console.log('going to resolve opp event') game.state = 'resolve_opponent_event' } else { + console.log('4') end_round() } } -- cgit v1.2.3