summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-15 00:36:03 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-15 00:36:03 +0200
commitb9ee0791e0834adbf8347ea198c4c0d580c7cf38 (patch)
treee1534e9d99f53b680f318ee901224c8792b40e6f
parentaa08a6d083fef631aa58b9c3d50c4c024639b498 (diff)
downloadwashingtons-war-b9ee0791e0834adbf8347ea198c4c0d580c7cf38.tar.gz
fix "discard opponent's card" events
-rw-r--r--rules.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index c3f2642..02dc94b 100644
--- a/rules.js
+++ b/rules.js
@@ -2228,13 +2228,11 @@ 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) {
@@ -2246,7 +2244,8 @@ function remove_random_card(hand) {
do_event(c)
else
end_strategy_card()
- }
+ } else
+ end_strategy_card()
}
function advance_french_alliance(count) {