summaryrefslogtreecommitdiff
path: root/play.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 /play.js
parentf117288970bafd5627dd26ee8b8182c5279f0d6f (diff)
downloadnevsky-d4a5eb7c57c1bd8a250d071456c63ce8787ac422.tar.gz
Held cards are also in use.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
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))