add Delver of Secrets (from Innistrad)

This commit is contained in:
slapshot5
2011-11-07 03:35:36 +00:00
parent 31ccb888b1
commit 57175638ca
3 changed files with 42 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1957,6 +1957,7 @@ res/cardsfolder/d/delirium_skeins.txt svneol=native#text/plain
res/cardsfolder/d/delraich.txt svneol=native#text/plain res/cardsfolder/d/delraich.txt svneol=native#text/plain
res/cardsfolder/d/deluge.txt svneol=native#text/plain res/cardsfolder/d/deluge.txt svneol=native#text/plain
res/cardsfolder/d/delusions_of_mediocrity.txt svneol=native#text/plain res/cardsfolder/d/delusions_of_mediocrity.txt svneol=native#text/plain
res/cardsfolder/d/delver_of_secrets_insectile_aberration.txt -text
res/cardsfolder/d/dematerialize.txt svneol=native#text/plain res/cardsfolder/d/dematerialize.txt svneol=native#text/plain
res/cardsfolder/d/dementia_bat.txt svneol=native#text/plain res/cardsfolder/d/dementia_bat.txt svneol=native#text/plain
res/cardsfolder/d/demigod_of_revenge.txt svneol=native#text/plain res/cardsfolder/d/demigod_of_revenge.txt svneol=native#text/plain

View File

@@ -0,0 +1,27 @@
Name:Delver of Secrets
ManaCost:U
Types:Creature Human Wizard
Text:no text
PT:1/1
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDig | TriggerDescription$ At the beginning of your upkeep, look at the top card of your library. You may reveal that card. If an instant or sorcery card is revealed this way, transform CARDNAME.
SVar:TrigDig:AB$ Dig | Cost$ 0 | DigNum$ 1 | DestinationZone$ Library | LibraryPosition$ 0 | LibraryPosition2$ 0 | RevealOptional$ True | NoMove$ True | RememberRevealed$ True | SubAbility$ DBTransform
SVar:DBTransform:DB$ ChangeState | Cost$ 0 | Defined$ Self | ConditionDefined$ Remembered | ConditionPresent$ Card.Instant,Card.Sorcery | ConditionCompare$ EQ1 | SubAbility$ Cleanup
SVar:Cleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Common
AlternateMode:DoubleFaced
SVar:Picture:http://www.wizards.com/global/images/magic/general/delver_of_secrets.jpg
ALTERNATE
Name:Insectile Aberration
ManaCost:no cost
Colors:blue
Types:Creature Human Insect
Text:no text
PT:3/2
K:Flying
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/insectile_aberration.jpg
Oracle:Creature - Human Insect\n3/2\nFlying
End

View File

@@ -371,6 +371,20 @@ public final class AbilityFactoryReveal {
GuiUtils.getChoice("Revealing cards from library", top.toArray()); GuiUtils.getChoice("Revealing cards from library", top.toArray());
// AllZone.getGameAction().revealToCopmuter(top.toArray()); // AllZone.getGameAction().revealToCopmuter(top.toArray());
// - for when it exists // - 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")) { } else if (params.containsKey("RevealValid")) {
final String revealValid = params.get("RevealValid"); final String revealValid = params.get("RevealValid");
final CardList toReveal = top.getValidCards(revealValid, host.getController(), host); final CardList toReveal = top.getValidCards(revealValid, host.getController(), host);