[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

@ -7,6 +7,7 @@ import java.io.Serializable;
import mage.cards.Card;
import mage.cards.Cards;
import mage.game.Game;
import mage.game.permanent.PermanentCard;
/**
* @author BetaSteward_at_googlemail.com
@ -19,7 +20,11 @@ public class RevealedView implements Serializable {
public RevealedView(String name, Cards cards, Game game) {
this.name = name;
for (Card card : cards.getCards(game)) {
this.cards.put(card.getId(), new CardView(card, game));
if (card instanceof PermanentCard && card.isFaceDown(game)) {
this.cards.put(card.getId(), new CardView(card.getMainCard())); // do not use game param, so it will take default card
} else {
this.cards.put(card.getId(), new CardView(card, game));
}
}
}