mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted Fork, Reverberate, and Twincast to script. Note that Fork keeps the same functionality it had in the code.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -251,62 +251,6 @@ public class CardFactory_Instants {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//*************** 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")) {
|
||||||
final SpellAbility spell = new Spell(card) {
|
final SpellAbility spell = new Spell(card) {
|
||||||
|
|||||||
Reference in New Issue
Block a user