summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-20 13:37:25 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commitd4a5eb7c57c1bd8a250d071456c63ce8787ac422 (patch)
tree422f87640c2a643c144aabcd409b72bf4aa5c316 /rules.js
parentf117288970bafd5627dd26ee8b8182c5279f0d6f (diff)
downloadnevsky-d4a5eb7c57c1bd8a250d071456c63ce8787ac422.tar.gz
Held cards are also in use.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
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))