diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-05 15:34:42 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | b8156168b00bab32bfb92806b6ab35910d55e03d (patch) | |
tree | 9e11376825b943b3d78bd3705bf0b897aed82435 | |
parent | a81bb2d47f1a632f2de4992e844ed8068217bf97 (diff) | |
download | nevsky-b8156168b00bab32bfb92806b6ab35910d55e03d.tar.gz |
Don't reveal capability cards by not prompting for events with hidden mats.
-rw-r--r-- | rules.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)) |