From b0ef54f8b98a20985e733f93a6c7af0388e51a00 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:15:11 +0000 Subject: [PATCH] add Sage Owl from Weatherlight --- res/card-pictures.txt | 1 + res/cards.txt | 7 +++++++ src/forge/CardFactory_Creatures.java | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index ed2a98d3f20..2ef8c518509 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg +sage_owl.jpg http://www.wizards.com/global/images/magic/general/sage_owl.jpg ponder.jpg http://www.wizards.com/global/images/magic/general/ponder.jpg daring_leap.jpg http://www.wizards.com/global/images/magic/general/daring_leap.jpg mind_control.jpg http://www.wizards.com/global/images/magic/general/mind_control.jpg diff --git a/res/cards.txt b/res/cards.txt index 13c497b658f..3ab44e939a8 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,10 @@ +Sage Owl +1 U +Creature Bird +When Sage Owl enters the battlefield, look at the top four cards of your library, then put them back in any order. +1/1 +Flying + Ponder U Sorcery diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 3381aaeba6a..d1c58ebcd41 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -17672,6 +17672,27 @@ public class CardFactory_Creatures { ability.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability)); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Sage Owl")) { + final SpellAbility ability = new Ability(card, "0") { + @Override + public void resolve() { + if(card.getController().equals(Constant.Player.Human)) { + AllZoneUtil.rearrangeTopOfLibrary(card.getController(), 4, false); + } + }//resolve() + };//SpellAbility + Command intoPlay = new Command() { + private static final long serialVersionUID = 4757054648163014149L; + + public void execute() { + AllZone.Stack.add(ability); + } + }; + ability.setStackDescription(cardName + " - Rearrange the top 4 cards in your library in any order."); + card.addComesIntoPlayCommand(intoPlay); + }//*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(shouldCycle(card) != -1) {