summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 22:46:39 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-01 22:46:39 +0000
commit5bed0a2b0e502886ec582135d5736ac58c077995 (patch)
treeb8bdc0cac0101a1122c33ebeb90afb99c433d219
parent10f3686689682ca788d6900520868ab51eae6c7e (diff)
download1989-dawn-of-freedom-5bed0a2b0e502886ec582135d5736ac58c077995.tar.gz
Fix end of round discarding
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 53166de..b437f6c 100644
--- a/rules.js
+++ b/rules.js
@@ -3171,7 +3171,8 @@ function end_round() {
return}
//Check if the card needs to be discarded.
- if (!game.strategy_removed.includes(game.played_card) && game.played_card > 0) {
+ let discard_check = [...game.strategy_removed, ...game.persistent_events]
+ if (!discard_check.includes(game.played_card) && game.played_card > 0) {
game.strategy_discard.push(game.played_card)
}