- Converted Fork, Reverberate, and Twincast to script. Note that Fork keeps the same functionality it had in the code.

This commit is contained in:
jendave
2011-08-07 00:55:59 +00:00
parent 04949e6d20
commit 16aa3c106c
4 changed files with 7 additions and 60 deletions

View File

@@ -1,7 +1,8 @@
Name:Fork Name:Fork
ManaCost:R R ManaCost:R R
Types:Instant Types:Instant
Text:Copy target instant or sorcery spell. You may choose new targets for the copy. Text:no text
A:SP$ CopySpell | Cost$ R R | ValidTgts$ Instant,Sorcery | SpellDescription$ Copy target instant or sorcery spell. You may choose new targets for the copy.
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/fork.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/fork.jpg
SetInfo:LEA|Rare|http://magiccards.info/scans/en/al/153.jpg SetInfo:LEA|Rare|http://magiccards.info/scans/en/al/153.jpg

View File

@@ -1,7 +1,8 @@
Name:Reverberate Name:Reverberate
ManaCost:R R ManaCost:R R
Types:Instant Types:Instant
Text:Copy target instant or sorcery spell. You may choose new targets for the copy. Text:no text
A:SP$ CopySpell | Cost$ R R | ValidTgts$ Instant,Sorcery | SpellDescription$ Copy target instant or sorcery spell. You may choose new targets for the copy.
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/reverberate.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/reverberate.jpg
SetInfo:M11|Rare|http://magiccards.info/scans/en/m11/155.jpg SetInfo:M11|Rare|http://magiccards.info/scans/en/m11/155.jpg

View File

@@ -1,7 +1,8 @@
Name:Twincast Name:Twincast
ManaCost:U U ManaCost:U U
Types:Instant Types:Instant
Text:Copy target instant or sorcery spell. You may choose new targets for the copy. Text:no text
A:SP$ CopySpell | Cost$ U U | ValidTgts$ Instant,Sorcery | SpellDescription$ Copy target instant or sorcery spell. You may choose new targets for the copy.
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/twincast.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/twincast.jpg
SetInfo:M10|Rare|http://magiccards.info/scans/en/m10/78.jpg SetInfo:M10|Rare|http://magiccards.info/scans/en/m10/78.jpg

View File

@@ -249,63 +249,7 @@ public class CardFactory_Instants {
card.addSpellAbility(spell_two); card.addSpellAbility(spell_two);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Twincast") || cardName.equals("Reverberate") || cardName.equals("Fork")) {
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = -659841515428746L;
@Override
public void resolve() {
AllZone.CardFactory.copySpellontoStack(card,getTargetCard(), true);
}
public boolean canPlay()
{
ArrayList<Card> list = AllZone.Stack.getSourceCards();
CardList StackList = new CardList();
for(int i = 0; i < list.size(); i++) StackList.add(list.get(i));
StackList = StackList.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.isSorcery() || c.isInstant();
}
});
return StackList.size() > 0 && super.canPlay();
}
};//SpellAbility
Input runtime = new Input() {
private static final long serialVersionUID = -7823269301012427007L;
@Override
public void showMessage() {
ArrayList<Card> list = AllZone.Stack.getSourceCards();
CardList StackList = new CardList();
for(int i = 0; i < list.size(); i++) StackList.add(list.get(i));
StackList = StackList.filter(new CardListFilter()
{
public boolean addCard(Card c)
{
return c.isSorcery() || c.isInstant();
}
});
stopSetNext(CardFactoryUtil.input_Spell(spell, StackList, false));
}//showMessage()
};//Input
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
card.clearFirstSpellAbility();
card.setCopiesSpells(true);
card.addSpellAbility(spell);
spell.setBeforePayMana(runtime);
}//*************** END ************ END **************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Fact or Fiction")) { else if(cardName.equals("Fact or Fiction")) {