mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
added Cerulean Sphinx (from Ravinica:City of Guilds)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/cerulean_sphinx.txt
Normal file
9
res/cardsfolder/cerulean_sphinx.txt
Normal 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
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user