mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[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:
parent
89be55c816
commit
145bda842b
7 changed files with 123 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue