mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||||
|
|||||||
9
res/cardsfolder/unearth.txt
Normal file
9
res/cardsfolder/unearth.txt
Normal 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
|
||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user