experimental patch for AF_Dig (RevealValid param)

This commit is contained in:
slapshot5
2011-10-14 22:22:17 +00:00
parent c81991d384
commit ce03d6af33

View File

@@ -331,6 +331,14 @@ public final class AbilityFactory_Reveal {
if (params.containsKey("Reveal")) { if (params.containsKey("Reveal")) {
GuiUtils.getChoice("Revealing cards from library", top.toArray()); GuiUtils.getChoice("Revealing cards from library", top.toArray());
//AllZone.getGameAction().revealToCopmuter(top.toArray()); - for when it exists //AllZone.getGameAction().revealToCopmuter(top.toArray()); - for when it exists
}
else if (params.containsKey("RevealValid")) {
String revealValid = params.get("RevealValid");
CardList toReveal = top.getValidCards(revealValid, host.getController(), host);
if (!toReveal.isEmpty()) {
GuiUtils.getChoice("Revealing cards from library", toReveal.toArray());
}
//AllZone.getGameAction().revealToCopmuter(top.toArray()); - for when it exists
} else if (player.isHuman()) { } else if (player.isHuman()) {
//show the user the revealed cards //show the user the revealed cards
GuiUtils.getChoice("Looking at cards from library", top.toArray()); GuiUtils.getChoice("Looking at cards from library", top.toArray());