added Cerulean Sphinx (from Ravinica:City of Guilds)

This commit is contained in:
jendave
2011-08-06 08:03:32 +00:00
parent c58d664a70
commit 8fbb3834b9
4 changed files with 40 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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

View File

@@ -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

View File

@@ -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) {

View File

@@ -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
*