diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-01 22:46:39 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-02 08:22:06 +0000 |
commit | 8f627b9c0ad5a1ba920c5dd1261c7ab9e89e0350 (patch) | |
tree | 2ed5f3bab68d618a113b6bc6bbf7dcb62764eb16 | |
parent | 94d0d4db0d0fe1a600dd11aed0343ec23f8989f7 (diff) | |
download | 1989-dawn-of-freedom-8f627b9c0ad5a1ba920c5dd1261c7ab9e89e0350.tar.gz |
Fix end of round discarding
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |