summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-09 17:49:22 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-09 17:49:22 +0200
commit1c72b0872bf32120bf203ac1a3d46d394207cde4 (patch)
treee2ede4e452041365055c27c3cdd23347cb3f1bb7
parente2e10cbf9eead62f4a846789703df66c5ff87447 (diff)
downloadwashingtons-war-1c72b0872bf32120bf203ac1a3d46d394207cde4.tar.gz
fix stall after removed random card events
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
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) {