mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
add Delver of Secrets (from Innistrad)
This commit is contained in:
@@ -371,6 +371,20 @@ public final class AbilityFactoryReveal {
|
||||
GuiUtils.getChoice("Revealing cards from library", top.toArray());
|
||||
// AllZone.getGameAction().revealToCopmuter(top.toArray());
|
||||
// - for when it exists
|
||||
} else if (params.containsKey("RevealOptional")) {
|
||||
String question = "Reveal: ";
|
||||
for (Card c : top) {
|
||||
question += c + " ";
|
||||
}
|
||||
if (p.isHuman() && GameActionUtil.showYesNoDialog(host, question)) {
|
||||
GuiUtils.getChoice("Revealing cards from library", top.toArray());
|
||||
// AllZone.getGameAction().revealToCopmuter(top.toArray());
|
||||
if (params.containsKey("RememberRevealed")) {
|
||||
for (Card one : top) {
|
||||
host.addRemembered(one);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (params.containsKey("RevealValid")) {
|
||||
final String revealValid = params.get("RevealValid");
|
||||
final CardList toReveal = top.getValidCards(revealValid, host.getController(), host);
|
||||
|
||||
Reference in New Issue
Block a user