mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added the Flashback code to the end of the spMakeToken keyword.
- Converted Call of the Herd to keyword.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
Name:Call of the Herd
|
Name:Call of the Herd
|
||||||
ManaCost:2 G
|
ManaCost:2 G
|
||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
Text:no text
|
Text:Put a 3/3 green Elephant creature token onto the battlefield.
|
||||||
|
K:spMakeToken<>1<>Elephant<>G 3 3 Elephant<>Controller<>G<>Creature;Elephant<>3<>3<>None
|
||||||
|
SVar:Flashback:3 G/0
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/call_of_the_herd.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/call_of_the_herd.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -5702,6 +5702,21 @@ public class CardFactory implements NewConstants {
|
|||||||
};
|
};
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
|
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(cardName).append(" - ").append(card.getSpellText());
|
||||||
|
spell.setStackDescription(sb.toString());
|
||||||
|
|
||||||
|
String fb = card.getSVar("Flashback");
|
||||||
|
if (!fb.equals("")) {
|
||||||
|
String fbCost[] = fb.split("/");
|
||||||
|
|
||||||
|
// fbCost[0] = Flashback mana cost
|
||||||
|
// fbCost[1] = Flashback life cost
|
||||||
|
|
||||||
|
card.setFlashback(true);
|
||||||
|
card.addSpellAbility(CardFactoryUtil.ability_Flashback(card, fbCost[0], fbCost[1]));
|
||||||
|
}
|
||||||
}//end MakeToken
|
}//end MakeToken
|
||||||
|
|
||||||
if(hasKeyword(card, "abMakeToken") != -1) {
|
if(hasKeyword(card, "abMakeToken") != -1) {
|
||||||
|
|||||||
@@ -2997,32 +2997,6 @@ public class CardFactory_Sorceries {
|
|||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Call of the Herd")) {
|
|
||||||
SpellAbility spell = new Spell(card) {
|
|
||||||
private static final long serialVersionUID = 1959302998030377554L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
CardFactoryUtil.makeToken("Elephant", "G 3 3 Elephant", card, "G", new String[] {
|
|
||||||
"Creature", "Elephant"}, 3, 3, new String[] {""});
|
|
||||||
}//resolve()
|
|
||||||
};
|
|
||||||
|
|
||||||
spell.setDescription("Put a 3/3 green Elephant creature token into play.");
|
|
||||||
spell.setStackDescription(card.getController()
|
|
||||||
+ " puts a 3/3 green Elephant creature token into play.");
|
|
||||||
|
|
||||||
card.setFlashback(true);
|
|
||||||
card.clearSpellAbility();
|
|
||||||
card.addSpellAbility(spell);
|
|
||||||
card.addSpellAbility(CardFactoryUtil.ability_Flashback(card, "3 G", "0"));
|
|
||||||
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Chatter of the Squirrel")) {
|
else if(cardName.equals("Chatter of the Squirrel")) {
|
||||||
SpellAbility spell = new Spell(card) {
|
SpellAbility spell = new Spell(card) {
|
||||||
|
|||||||
Reference in New Issue
Block a user