- Added Treasure Hunt.

This commit is contained in:
Sloth
2011-09-01 13:42:21 +00:00
parent 7ed642bf20
commit 7a6475b6b1
3 changed files with 23 additions and 7 deletions

1
.gitattributes vendored
View File

@@ -8112,6 +8112,7 @@ res/cardsfolder/t/twisted_image.txt svneol=native#text/plain
res/cardsfolder/t/twitch.txt svneol=native#text/plain
res/cardsfolder/t/typhoon.txt svneol=native#text/plain
res/cardsfolder/t/tyrranax.txt svneol=native#text/plain
res/cardsfolder/treasure_hunt.txt -text
res/cardsfolder/u/uktabi_drake.txt svneol=native#text/plain
res/cardsfolder/u/uktabi_efreet.txt svneol=native#text/plain
res/cardsfolder/u/uktabi_faerie.txt svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Treasure Hunt
ManaCost:1 U
Types:Sorcery
Text:no text
A:SP$ DigUntil | Cost$ 1 U | Valid$ Card.nonLand | ValidDescription$ nonland | RevealedDestination$ Hand | SpellDescription$ Reveal cards from the top of your library until you reveal a nonland card, then put all cards revealed this way into your hand.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/treasure_hunt.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/42.jpg
End

View File

@@ -653,6 +653,7 @@ public final class AbilityFactory_Reveal {
sb.append(". Put ");
String found = params.get("FoundDestination");
String revealed = params.get("RevealedDestination");
if (found != null) {
sb.append(untilAmount > 1 ? "those cards" : "that card");
@@ -662,15 +663,20 @@ public final class AbilityFactory_Reveal {
if (found.equals(Constant.Zone.Hand)) {
sb.append("into his or her hand ");
}
if (revealed.equals(Constant.Zone.Graveyard)) {
sb.append("and all other cards into his or her graveyard.");
}
if (revealed.equals(Constant.Zone.Exile)) {
sb.append("and exile all other cards revealed this way.");
}
} else {
if (revealed.equals(Constant.Zone.Hand)) {
sb.append("all cards revealed this way into his or her hand");
}
}
String revealed = params.get("RevealedDestination");
if (revealed.equals(Constant.Zone.Graveyard)) {
sb.append("and all other cards into his or her graveyard.");
}
if (revealed.equals(Constant.Zone.Exile)) {
sb.append("and exile all other cards revealed this way.");
}
Ability_Sub abSub = sa.getSubAbility();
if (abSub != null) {