diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-20 13:37:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | d4a5eb7c57c1bd8a250d071456c63ce8787ac422 (patch) | |
tree | 422f87640c2a643c144aabcd409b72bf4aa5c316 | |
parent | f117288970bafd5627dd26ee8b8182c5279f0d6f (diff) | |
download | nevsky-d4a5eb7c57c1bd8a250d071456c63ce8787ac422.tar.gz |
Held cards are also in use.
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -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)) @@ -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)) |