- Added Unearth and changed spReturnTgt code to include a spell description parameter which in turn allowed a cycling card to be added.

This commit is contained in:
jendave
2011-08-06 08:57:24 +00:00
parent 4454c64ae3
commit b9f7457fc2
3 changed files with 20 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -4249,6 +4249,7 @@ res/cardsfolder/underworld_dreams.txt -text svneol=native#text/plain
res/cardsfolder/undiscovered_paradise.txt -text svneol=native#text/plain res/cardsfolder/undiscovered_paradise.txt -text svneol=native#text/plain
res/cardsfolder/undying_beast.txt -text svneol=native#text/plain res/cardsfolder/undying_beast.txt -text svneol=native#text/plain
res/cardsfolder/undying_rage.txt -text svneol=native#text/plain res/cardsfolder/undying_rage.txt -text svneol=native#text/plain
res/cardsfolder/unearth.txt -text svneol=native#text/plain
res/cardsfolder/unfulfilled_desires.txt -text svneol=native#text/plain res/cardsfolder/unfulfilled_desires.txt -text svneol=native#text/plain
res/cardsfolder/unhinge.txt -text svneol=native#text/plain res/cardsfolder/unhinge.txt -text svneol=native#text/plain
res/cardsfolder/unholy_strength.txt -text svneol=native#text/plain res/cardsfolder/unholy_strength.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Unearth
ManaCost:B
Types:Sorcery
Text:no text
K:spReturnTgt:1:Creature.cmcLE3:Battlefield:Return target creature card with converted mana cost 3 or less from your graveyard to the battlefield.
K:Cycling:2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/unearth.jpg
End

View File

@@ -3676,14 +3676,21 @@ public class CardFactory implements NewConstants {
final String Destination = k[3]; final String Destination = k[3];
String desc = "";
final String Drawback[] = {"none"}; final String Drawback[] = {"none"};
if (k.length > 4) { if (k.length > 4) {
if (k[4].contains("Drawback$")){ if (k[4].contains("Drawback$")){
String kk[] = k[4].split("\\$"); String kk[] = k[4].split("\\$");
Drawback[0] = kk[1]; Drawback[0] = kk[1];
} else {
desc = k[4];
} }
} }
if (k.length > 5) {
desc = k[5];
}
card.clearSpellAbility(); card.clearSpellAbility();
@@ -3887,6 +3894,9 @@ public class CardFactory implements NewConstants {
} }
};// Input };// Input
if (desc.length() > 0) {
spRtrnTgt.setDescription(desc);
}
spRtrnTgt.setBeforePayMana(target); spRtrnTgt.setBeforePayMana(target);
card.addSpellAbility(spRtrnTgt); card.addSpellAbility(spRtrnTgt);