- Moved Vanishing to postFactoryKeywords. This removes the need for it to be in each CardFactory file.

- Removed unneeded Vanishing code blocks.
- Updated Aven Riftwatcher and Calciderm to use Vanishing.
This commit is contained in:
jendave
2011-08-06 08:06:27 +00:00
parent 24600f2c54
commit 6a30a45cd5
6 changed files with 19 additions and 125 deletions

View File

@@ -10270,21 +10270,6 @@ public class CardFactory implements NewConstants {
}
}//Soulshift
if(hasKeyword(card, "Vanishing") != -1) {
int n = hasKeyword(card, "Vanishing");
if(n != -1) {
String parse = card.getKeyword().get(n).toString();
card.removeIntrinsicKeyword(parse);
String k[] = parse.split(":");
final int power = Integer.parseInt(k[1]);
card.addComesIntoPlayCommand(CardFactoryUtil.vanishing(card, power));
card.addSpellAbility(CardFactoryUtil.vanish_desc(card, power));
}
}//Vanishing
if(hasKeyword(card, "Echo") != -1) {
int n = hasKeyword(card, "Echo");
if(n != -1) {
@@ -10434,6 +10419,20 @@ public class CardFactory implements NewConstants {
public Card postFactoryKeywords(Card card){
// this function should handle any keywords that need to be added after a spell goes through the factory
if(hasKeyword(card, "Vanishing") != -1) {
int n = hasKeyword(card, "Vanishing");
if(n != -1) {
String parse = card.getKeyword().get(n).toString();
card.removeIntrinsicKeyword(parse);
String k[] = parse.split(":");
final int power = Integer.parseInt(k[1]);
card.addComesIntoPlayCommand(CardFactoryUtil.vanishing(card, power));
card.addSpellAbility(CardFactoryUtil.vanish_desc(card, power));
}
}//Vanishing
// Spell has Additional Cost. Reuse Ability_Cost
if (hasKeyword(card, "ACost") != -1){