From 1c72b0872bf32120bf203ac1a3d46d394207cde4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 9 May 2024 17:49:22 +0200 Subject: fix stall after removed random card events --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 678fa8d..f027463 100644 --- a/rules.js +++ b/rules.js @@ -1980,8 +1980,6 @@ function gen_intercept() { let g = find_american_or_french_general(space); if (g && !game.moved[g]) gen_action('select_general', g); - else if (g) - console.log(g, "already moved"); } } } @@ -2167,11 +2165,13 @@ events.the_war_ends = function (c, card) { events.remove_random_british_card = function (c, card) { play_card(c); remove_random_card(game.b_hand); + end_strategy_card(); } events.remove_random_american_card = function (c, card) { play_card(c); remove_random_card(game.a_hand); + end_strategy_card(); } function remove_random_card(hand) { -- cgit v1.2.3