mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
convert Fable of Wolf and Owl to triggers.
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
Name:Fable of Wolf and Owl
|
Name:Fable of Wolf and Owl
|
||||||
ManaCost:3 GU GU GU
|
ManaCost:3 GU GU GU
|
||||||
Types:Enchantment
|
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:BuffedBy:Spell.Green,Spell.Blue
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/fable_of_wolf_and_owl.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/fable_of_wolf_and_owl.jpg
|
||||||
|
|||||||
@@ -497,7 +497,6 @@ public class GameActionUtil {
|
|||||||
playCard_Standstill(c);
|
playCard_Standstill(c);
|
||||||
playCard_Sigil_of_the_Empty_Throne(c);
|
playCard_Sigil_of_the_Empty_Throne(c);
|
||||||
playCard_Merrow_Levitator(c);
|
playCard_Merrow_Levitator(c);
|
||||||
playCard_Fable_of_Wolf_and_Owl(c);
|
|
||||||
//playCard_Kor_Firewalker(c);
|
//playCard_Kor_Firewalker(c);
|
||||||
playCard_Curse_of_Wizardry(c);
|
playCard_Curse_of_Wizardry(c);
|
||||||
playCard_Venser_Emblem(c);
|
playCard_Venser_Emblem(c);
|
||||||
@@ -1887,60 +1886,6 @@ public class GameActionUtil {
|
|||||||
}// if is blue spell
|
}// if is blue spell
|
||||||
}//merrow levitator
|
}//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) {
|
public static void playCard_Kor_Firewalker(Card c) {
|
||||||
|
|||||||
Reference in New Issue
Block a user