diff --git a/.gitattributes b/.gitattributes index 7fa89e5c8d6..d4c2ac85690 100644 --- a/.gitattributes +++ b/.gitattributes @@ -211,6 +211,7 @@ res/cardsfolder/ant_queen.txt -text svneol=native#text/plain res/cardsfolder/anthroplasm.txt -text svneol=native#text/plain res/cardsfolder/antler_skulkin.txt -text svneol=native#text/plain res/cardsfolder/anurid_barkripper.txt -text svneol=native#text/plain +res/cardsfolder/anurid_brushhopper.txt svneol=native#text/plain res/cardsfolder/anurid_murkdiver.txt -text svneol=native#text/plain res/cardsfolder/anvil_of_bogardan.txt svneol=native#text/plain res/cardsfolder/apex_hawks.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/anurid_brushhopper.txt b/res/cardsfolder/anurid_brushhopper.txt new file mode 100644 index 00000000000..94c6cf6f519 --- /dev/null +++ b/res/cardsfolder/anurid_brushhopper.txt @@ -0,0 +1,9 @@ +Name:Anurid Brushhopper +ManaCost:1 G W +Types:Creature Frog Beast +Text:no text +PT:3/4 +SVar:RemAIDeck:True +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/anurid_brushhopper.jpg +End \ No newline at end of file diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 0c19de66c79..4b53bd3ad12 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -12431,6 +12431,42 @@ public class CardFactory_Creatures { };//Command card.addDestroyCommand(exile); }//*************** END ************ END ************************** + + + //*************** START *********** START ************************** + else if(cardName.equals("Anurid Brushhopper")) { + + final SpellAbility toPlay = new Ability(card, "0") { + @Override + public void resolve() { + AllZone.GameAction.moveToPlay(card); + } + }; //ability + StringBuilder sb = new StringBuilder(); + sb.append("Return "+card+" to the battlefield."); + toPlay.setStackDescription(sb.toString()); + + final Command eot = new Command() { + private static final long serialVersionUID = 911163814565333484L; + + public void execute() { + AllZone.Stack.add(toPlay); + } + }; + + final Ability_Cost abCost = new Ability_Cost("Discard<2/Any>", cardName, true); + final Ability_Activated toExile = new Ability_Activated(card, abCost, null) { + private static final long serialVersionUID = 7850843970664800204L; + + public void resolve() { + AllZone.GameAction.exile(card); + AllZone.EndOfTurn.addAt(eot); + } + }; + toExile.setDescription(abCost+"Exile CARDNAME. Return it to the battlefield under its owner's control at the beginning of the next end step."); + toExile.setStackDescription(card+" - exile "+card+"."); + card.addSpellAbility(toExile); + }//*************** END ************ END ************************** if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)