convert Fable of Wolf and Owl to triggers.

This commit is contained in:
jendave
2011-08-06 16:28:00 +00:00
parent 23e81aaafd
commit 1c8a2511db
2 changed files with 5 additions and 56 deletions

View File

@@ -1,7 +1,11 @@
Name:Fable of Wolf and Owl
ManaCost:3 GU GU GU
Types:Enchantment
Text:Whenever you cast a green spell, you may put a 2/2 green Wolf creature token onto the battlefield.\r\nWhenever you cast a blue spell, you may put a 1/1 blue Bird creature token with flying onto the battlefield.
Text:no text
T:Mode$SpellCast | ValidCard$ Card.Green+YouCtrl | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigWolf | TriggerDescription$ Whenever you cast a green spell, you may put a 2/2 green Wolf creature token onto the battlefield.
T:Mode$SpellCast | ValidCard$ Card.Blue+YouCtrl | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigBird | TriggerDescription$ Whenever you cast a blue spell, you may put a 1/1 blue Bird creature token with flying onto the battlefield.
SVar:TrigWolf:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Wolf | TokenTypes$ Creature,Wolf | TokenOwner$ Controller | TokenColors$ Green | TokenPower$ 2 | TokenToughness$ 2
SVar:TrigBird:AB$Token | Cost$ 0 | TokenAmount$ 1 | TokenName$ Bird | TokenTypes$ Creature,Bird | TokenOwner$ Controller | TokenColors$ Blue | TokenPower$ 1 | TokenToughness$ 1 | TokenKeywords$ Flying
SVar:BuffedBy:Spell.Green,Spell.Blue
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/fable_of_wolf_and_owl.jpg

View File

@@ -497,7 +497,6 @@ public class GameActionUtil {
playCard_Standstill(c);
playCard_Sigil_of_the_Empty_Throne(c);
playCard_Merrow_Levitator(c);
playCard_Fable_of_Wolf_and_Owl(c);
//playCard_Kor_Firewalker(c);
playCard_Curse_of_Wizardry(c);
playCard_Venser_Emblem(c);
@@ -1887,60 +1886,6 @@ public class GameActionUtil {
}// if is blue spell
}//merrow levitator
public static void playCard_Fable_of_Wolf_and_Owl(Card c) {
final Player controller = c.getController();
final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller);
CardList list = new CardList();
list.addAll(play.getCards());
list = list.getName("Fable of Wolf and Owl");
if(list.size() > 0) {
if(c.isBlue()) {
for(int i = 0; i < list.size(); i++) {
final Card card = list.get(i);
Ability ability2 = new Ability(card, "0") {
@Override
public void resolve() {
CardFactoryUtil.makeToken("Bird", "U 1 1 Bird", card.getController(), "U", new String[] {
"Creature", "Bird"}, 1, 1, new String[] {"Flying"});
}
}; // ability2
StringBuilder sb = new StringBuilder();
sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" played a blue spell, put a 1/1 blue Bird token with flying onto the battlefield.");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2);
}
}//if
}
if(c.isGreen()) {
for(int i = 0; i < list.size(); i++) {
final Card card = list.get(i);
Ability ability = new Ability(card, "0") {
@Override
public void resolve() {
CardFactoryUtil.makeToken("Wolf", "G 2 2 Wolf", card.getController(), "G", new String[] {
"Creature", "Wolf"}, 2, 2, new String[] {""});
}
}; // ability
StringBuilder sb = new StringBuilder();
sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" played a green spell, put a 2/2 green Wolf token onto the battlefield.");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
}
}//if
}//Fable
/*
public static void playCard_Kor_Firewalker(Card c) {