mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converting Search for Tomorrow to AF_Fetch (since it didn't seem to work before)
- Moving Suspend down to postFactoryKeywords() so Spells with Ability_Factory don't clear out Suspend ability when trying to clear default "Spell" ability.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Name:Search for Tomorrow
|
||||
ManaCost:2 G
|
||||
Types:Sorcery
|
||||
Text:Search your library for a basic land card and put it onto the battlefield. Then shuffle your library.
|
||||
K:spTutor:Land.Basic:Battlefield
|
||||
Text:no text
|
||||
K:Suspend:2:G
|
||||
A:SP$Fetch|Cost$2 G|Destination$Battlefield|FetchType$Land.Basic|FetchNum$1|SpellDescription$Search your library for a basic land card and put them onto the battlefield. Then shuffle your library.
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/search_for_tomorrow.jpg
|
||||
End
|
||||
|
||||
@@ -5439,21 +5439,6 @@ public class CardFactory implements NewConstants {
|
||||
card.setMadnessCost(k[1]);
|
||||
}
|
||||
}//madness
|
||||
|
||||
if(hasKeyword(card, "Suspend") != -1) {
|
||||
// Suspend:<TimeCounters>:<Cost>
|
||||
int n = hasKeyword(card, "Suspend");
|
||||
if(n != -1) {
|
||||
String parse = card.getKeyword().get(n).toString();
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
card.setSuspend(true);
|
||||
String k[] = parse.split(":");
|
||||
|
||||
final int timeCounters = Integer.parseInt(k[1]);
|
||||
final String cost = k[2];
|
||||
card.addSpellAbility(CardFactoryUtil.ability_suspend(card, cost, timeCounters));
|
||||
}
|
||||
}//madness
|
||||
|
||||
if(hasKeyword(card, "Devour") != -1) {
|
||||
int n = hasKeyword(card, "Devour");
|
||||
@@ -12253,6 +12238,21 @@ public class CardFactory implements NewConstants {
|
||||
card.addChangeControllerCommand(controllerChanges);
|
||||
} //HandSize
|
||||
|
||||
if(hasKeyword(card, "Suspend") != -1) {
|
||||
// Suspend:<TimeCounters>:<Cost>
|
||||
int n = hasKeyword(card, "Suspend");
|
||||
if(n != -1) {
|
||||
String parse = card.getKeyword().get(n).toString();
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
card.setSuspend(true);
|
||||
String k[] = parse.split(":");
|
||||
|
||||
final int timeCounters = Integer.parseInt(k[1]);
|
||||
final String cost = k[2];
|
||||
card.addSpellAbility(CardFactoryUtil.ability_suspend(card, cost, timeCounters));
|
||||
}
|
||||
}//Suspend
|
||||
|
||||
if (card.getManaCost().contains("X"))
|
||||
{
|
||||
SpellAbility sa = card.getSpellAbility()[0];
|
||||
|
||||
Reference in New Issue
Block a user