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-02 08:22:06 +0000
commit8f627b9c0ad5a1ba920c5dd1261c7ab9e89e0350 (patch)
tree2ed5f3bab68d618a113b6bc6bbf7dcb62764eb16
parent94d0d4db0d0fe1a600dd11aed0343ec23f8989f7 (diff)
download1989-dawn-of-freedom-8f627b9c0ad5a1ba920c5dd1261c7ab9e89e0350.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)
}