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-01 22:46:39 +0000 |
commit | 5bed0a2b0e502886ec582135d5736ac58c077995 (patch) | |
tree | b8bdc0cac0101a1122c33ebeb90afb99c433d219 | |
parent | 10f3686689682ca788d6900520868ab51eae6c7e (diff) | |
download | 1989-dawn-of-freedom-5bed0a2b0e502886ec582135d5736ac58c077995.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) } |