[DSK] Implement Hauntwoods Shrieker, added support to reveal face down permanents (#13277)

* [DSK] Implement Hauntwoods Shrieker.
* Change RevealedView and PlayerImpl.revealCards to reveal face-down permanents.
* Fix #13273 using the new RevealCards capability.
This commit is contained in:
Grath 2025-02-07 10:18:31 -05:00 committed by GitHub
parent 89be55c816
commit 145bda842b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 123 additions and 10 deletions

View file

@ -1910,7 +1910,11 @@ public abstract class PlayerImpl implements Player, Serializable {
int last = cards.size();
for (Card card : cards.getCards(game)) {
current++;
sb.append(GameLog.getColoredObjectName(card)); // TODO: see same usage in OfferingAbility for hide card's id (is it needs for reveal too?!)
if (card instanceof PermanentCard && card.isFaceDown(game)) {
sb.append(GameLog.getColoredObjectName(card.getMainCard()));
} else {
sb.append(GameLog.getColoredObjectName(card)); // TODO: see same usage in OfferingAbility for hide card's id (is it needs for reveal too?!)
}
if (current < last) {
sb.append(", ");
}