mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Dovescape to triggers
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
Name:Dovescape
|
||||
ManaCost:3 WU WU WU
|
||||
Types:Enchantment
|
||||
Text:Whenever a player casts a noncreature spell, counter that spell. That player puts X 1/1 white and blue Bird creature tokens with flying onto the battlefield, where X is the spell's converted mana cost.
|
||||
Text:no text
|
||||
T:Mode$ SpellCast | ValidCard$ Card.nonCreature | TriggerZones$ Battlefield | Execute$ TrigCounter | TriggerDescription$ Whenever a player casts a noncreature spell, counter that spell. That player puts X 1/1 white and blue Bird creature tokens with flying onto the battlefield, where X is the spell's converted mana cost.
|
||||
SVar:TrigCounter:AB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility | SubAbility$ DBToken
|
||||
SVar:DBToken:DB$Token | TokenAmount$ X | TokenName$ Bird | TokenTypes$ Creature,Bird | TokenOwner$ TriggeredPlayer | TokenColors$ White,Blue | TokenPower$ 1 | TokenToughness$ 1 | TokenKeywords$ Flying
|
||||
SVar:X:TriggeredCard$CardManaCost
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/dovescape.jpg
|
||||
SetInfo:DIS|Rare|http://magiccards.info/scans/en/di/143.jpg
|
||||
|
||||
@@ -118,7 +118,6 @@ public class GameActionUtil {
|
||||
playCard_Ripple(c);
|
||||
playCard_Storm(sa);
|
||||
|
||||
playCard_Dovescape(c); //keep this one top
|
||||
playCard_Chalice_of_the_Void(c);
|
||||
playCard_Vengevine(c);
|
||||
playCard_Demigod_of_Revenge(c);
|
||||
@@ -540,55 +539,6 @@ public class GameActionUtil {
|
||||
}//if
|
||||
}// Demigod of Revenge
|
||||
|
||||
public static void playCard_Dovescape(final Card c) {
|
||||
CardList list = AllZoneUtil.getCardsInPlay();
|
||||
final int cmc = CardUtil.getConvertedManaCost(c.getManaCost());
|
||||
list = list.getName("Dovescape");
|
||||
final CardList cl = list;
|
||||
if (!c.isCreature()
|
||||
&& list.size() > 0) {
|
||||
final Card card = list.get(0);
|
||||
|
||||
Ability ability2 = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
SpellAbility sa = AllZone.Stack.peek();
|
||||
|
||||
if (sa.getSourceCard().equals(c)) {
|
||||
sa = AllZone.Stack.pop();
|
||||
|
||||
AllZone.GameAction.moveToGraveyard(sa.getSourceCard());
|
||||
|
||||
for (int j = 0; j < cl.size() * cmc; j++) {
|
||||
CardFactoryUtil.makeToken("Bird", "WU 1 1 Bird", sa.getSourceCard().getController(), "W U",
|
||||
new String[] {"Creature", "Bird"}, 1, 1, new String[] {"Flying"});
|
||||
}
|
||||
|
||||
/*
|
||||
SpellAbility sa = AllZone.Stack.peek
|
||||
if (!sa.getSourceCard().isCreature() && sa.isSpell())
|
||||
{
|
||||
|
||||
}
|
||||
*/
|
||||
} else //TODO
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}; // ability2
|
||||
|
||||
ability2.setStackDescription("Dovescape Ability");
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(ability2);
|
||||
|
||||
|
||||
}
|
||||
} // Dovescape
|
||||
|
||||
public static void playCard_Standstill(Card c) {
|
||||
CardList list = AllZoneUtil.getCardsInPlay("Standstill");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user