mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Delver of Secrets (from Innistrad)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||||
|
|||||||
27
res/cardsfolder/d/delver_of_secrets_insectile_aberration.txt
Normal file
27
res/cardsfolder/d/delver_of_secrets_insectile_aberration.txt
Normal 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
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user