diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-09 17:49:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-09 17:49:22 +0200 |
commit | 1c72b0872bf32120bf203ac1a3d46d394207cde4 (patch) | |
tree | e2ede4e452041365055c27c3cdd23347cb3f1bb7 /rules.js | |
parent | e2e10cbf9eead62f4a846789703df66c5ff87447 (diff) | |
download | washingtons-war-1c72b0872bf32120bf203ac1a3d46d394207cde4.tar.gz |
fix stall after removed random card events
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |