diff --git a/.gitattributes b/.gitattributes index 205b1507cf7..5699d6d5672 100644 --- a/.gitattributes +++ b/.gitattributes @@ -582,6 +582,7 @@ res/cardsfolder/centaur_safeguard.txt -text svneol=native#text/plain res/cardsfolder/cephalid_broker.txt -text svneol=native#text/plain res/cardsfolder/cephalid_looter.txt -text svneol=native#text/plain res/cardsfolder/cerodon_yearling.txt -text svneol=native#text/plain +res/cardsfolder/cerulean_sphinx.txt -text svneol=native#text/plain res/cardsfolder/cerulean_wyvern.txt -text svneol=native#text/plain res/cardsfolder/cessation.txt -text svneol=native#text/plain res/cardsfolder/ceta_disciple.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/cerulean_sphinx.txt b/res/cardsfolder/cerulean_sphinx.txt new file mode 100644 index 00000000000..84c45beebe7 --- /dev/null +++ b/res/cardsfolder/cerulean_sphinx.txt @@ -0,0 +1,9 @@ +Name:Cerulean Sphinx +ManaCost:4 U U +Types:Creature Sphinx +Text:U: Cerulean Sphinx's owner shuffles it into his or her library. +PT:5/5 +K:Flying +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/cerulean_sphinx.jpg +End \ No newline at end of file diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index d64cf80539f..8b1050cd8d8 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -21439,6 +21439,32 @@ public class CardFactory_Creatures { card.addSpellAbility(untap); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Cerulean Sphinx")) { + final Ability intoLibrary = new Ability(card, "U") { + public void resolve() { + if(AllZoneUtil.isCardInPlay(card)) { + AllZone.GameAction.moveToLibrary(card); + AllZone.GameAction.shuffle(card.getOwner()); + } + } + }; + + Input runtime = new Input() { + private static final long serialVersionUID = 8914195530360741167L; + + @Override + public void showMessage() { + intoLibrary.setStackDescription("Shuffle " + card + " into its owner's library"); + stopSetNext(new Input_PayManaCost(intoLibrary)); + } + }; + + intoLibrary.setStackDescription(card +" - shuffle "+card+" into owner's library"); + card.addSpellAbility(intoLibrary); + intoLibrary.setBeforePayMana(runtime); + }//*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(shouldCycle(card) != -1) { diff --git a/src/forge/GameAction.java b/src/forge/GameAction.java index 32421202427..890d8fb6b50 100644 --- a/src/forge/GameAction.java +++ b/src/forge/GameAction.java @@ -113,6 +113,10 @@ public class GameAction { library.add(c, 0); } + public void moveToLibrary(Card c) { + moveToTopOfLibrary(c); + } + /** * moves a card from whichever Zone it's in to the bottom of its owner's library *