Added card Parallel Evolution.

Added CardFactoryUtil.copyTokens(CardList) to support new card.
This commit is contained in:
jendave
2011-08-06 05:35:49 +00:00
parent 95c2af458b
commit c662008ed0
3 changed files with 66 additions and 2 deletions

View File

@@ -9163,7 +9163,7 @@ public class CardFactory implements NewConstants {
choice = AllZone.Display.getChoice("Choose", removeLand(all.toArray()));
Card[] showLibrary = library.getCards();
Comparator com = new TableSorter(new CardList(showLibrary), 2, true);
Comparator<Card> com = new TableSorter(new CardList(showLibrary), 2, true);
Arrays.sort(showLibrary, com);
AllZone.Display.getChoiceOptional("Opponent's Library", showLibrary);
@@ -11816,6 +11816,45 @@ public class CardFactory implements NewConstants {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Parallel Evolution")) {
SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 3456160935845779623L;
@Override
public void resolve() {
// for each play zone add a copy of each creature token card
CardList creature = new CardList();
creature.addAll(AllZone.Human_Play.getCards());
creature.addAll(AllZone.Computer_Play.getCards());
creature = creature.getType("Creature");
creature = creature.filter(new CardListFilter()
{
public boolean addCard(Card crd)
{
return crd.isToken();
}
});
CardFactoryUtil.copyTokens(creature);
}
};
spell.setDescription("For each creature token on the battlefield, its controller puts a token that's a copy of that creature onto the battlefield.");
spell.setStackDescription("For each creature token on the battlefield, its controller puts a token that's a copy of that creature onto the battlefield.");
card.setFlashback(true);
card.clearSpellAbility();
card.addSpellAbility(spell);
card.addSpellAbility(CardFactoryUtil.ability_Flashback(card, "4 G G G", "0"));
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Beast Attack")) {
SpellAbility spell = new Spell(card) {