From 96340e1e86f9f4dba638a10173e508c09b3ba6d1 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:16:08 +0000 Subject: [PATCH] added Halimar Depths from Worldwake. --- res/card-pictures.txt | 1 + res/cards.txt | 7 +++++++ src/forge/CardFactory_Lands.java | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index dc2c6c87cb3..9d4ba320f9b 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 +halimar_depths.jpg http://www.wizards.com/global/images/magic/general/halimar_depths.jpg filigree_sages.jpg http://www.wizards.com/global/images/magic/general/filigree_sages.jpg spire_owl.jpg http://www.wizards.com/global/images/magic/general/spire_owl.jpg sage_aven.jpg http://www.wizards.com/global/images/magic/general/sage_aven.jpg diff --git a/res/cards.txt b/res/cards.txt index f19917e797c..6fc33ac548e 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,10 @@ +Halimar Depths +no cost +Land +When Halimar Depths enters the battlefield, look at the top three cards of your library, then put them back in any order. +Comes into play tapped. +tap: add U + Filigree Sages 3 U Artifact Creature Vedalken Wizard diff --git a/src/forge/CardFactory_Lands.java b/src/forge/CardFactory_Lands.java index 2a4c8ff686e..49fa5efbf51 100644 --- a/src/forge/CardFactory_Lands.java +++ b/src/forge/CardFactory_Lands.java @@ -2917,6 +2917,31 @@ class CardFactory_Lands { ability2.setBeforePayMana(new Input_PayManaCost(ability2)); }//*************** END ************ END ************************** + + //*************** START *********** START ************************** + else if(cardName.equals("Halimar Depths")) { + /* + * When Halimar Depths enters the battlefield, look at the top three + * cards of your library, then put them back in any order. + */ + final SpellAbility ability = new Ability(card, "0") { + @Override + public void resolve() { + if(card.getController().equals(Constant.Player.Human)) { + AllZoneUtil.rearrangeTopOfLibrary(card.getController(), 3, false); + } + }//resolve() + };//SpellAbility + Command intoPlay = new Command() { + private static final long serialVersionUID = 4523264604845132603L; + + public void execute() { + AllZone.Stack.add(ability); + } + }; + ability.setStackDescription(cardName + " - Rearrange the top 3 cards in your library in any order."); + card.addComesIntoPlayCommand(intoPlay); + }//*************** END ************ END ************************** if(hasKeyword(card, "Cycling") != -1) { int n = hasKeyword(card, "Cycling");