From b8156168b00bab32bfb92806b6ab35910d55e03d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 5 Feb 2023 15:34:42 +0100 Subject: Don't reveal capability cards by not prompting for events with hidden mats. --- rules.js | 7 +++++-- 1 file 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)) -- cgit v1.2.3