From d4a5eb7c57c1bd8a250d071456c63ce8787ac422 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Dec 2022 13:37:25 +0100 Subject: Held cards are also in use. --- play.js | 2 ++ rules.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/play.js b/play.js index 0c7add8..60b12d0 100644 --- a/play.js +++ b/play.js @@ -297,6 +297,8 @@ function is_marshal(lord) { } function is_card_in_use(c) { + if (set_has(view.hand, c)) + return true if (set_has(view.events, c)) return true if (set_has(view.capabilities, c)) diff --git a/rules.js b/rules.js index c0a39b9..ae3505a 100644 --- a/rules.js +++ b/rules.js @@ -733,6 +733,10 @@ function is_marshal(lord) { } function is_card_in_use(c) { + if (set_has(game.hand1, c)) + return true + if (set_has(game.hand2, c)) + return true if (set_has(game.events, c)) return true if (set_has(game.capabilities, c)) -- cgit v1.2.3