From 5bed0a2b0e502886ec582135d5736ac58c077995 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 1 Nov 2024 22:46:39 +0000 Subject: Fix end of round discarding --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.js') 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) } -- cgit v1.2.3