summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-05 15:34:42 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitb8156168b00bab32bfb92806b6ab35910d55e03d (patch)
tree9e11376825b943b3d78bd3705bf0b897aed82435
parenta81bb2d47f1a632f2de4992e844ed8068217bf97 (diff)
downloadnevsky-b8156168b00bab32bfb92806b6ab35910d55e03d.tar.gz
Don't reveal capability cards by not prompting for events with hidden mats.
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index f0fff2d..e318c38 100644
--- a/rules.js
+++ b/rules.js
@@ -7209,8 +7209,11 @@ function resume_battle_events() {
function could_play_card(c) {
if (set_has(game.capabilities, c))
return false
- if (game.pieces.capabilities.includes(c))
- return false
+ if (!game.hidden) {
+ // TODO: check capabilities on lords revealed in battle if hidden
+ if (game.pieces.capabilities.includes(c))
+ return false
+ }
if (set_has(game.events, c))
return false
if (is_p1_card(c))