mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add Sea Gate Oracle (from Rise of the Eldrazi)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4137,6 +4137,7 @@ res/cardsfolder/scuzzback_marauders.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/scuzzback_scrapper.txt -text svneol=native#text/plain
|
res/cardsfolder/scuzzback_scrapper.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/sea_eagle.txt -text svneol=native#text/plain
|
res/cardsfolder/sea_eagle.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/sea_gate_loremaster.txt -text svneol=native#text/plain
|
res/cardsfolder/sea_gate_loremaster.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/sea_gate_oracle.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/sea_monster.txt -text svneol=native#text/plain
|
res/cardsfolder/sea_monster.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/sea_scryer.txt -text svneol=native#text/plain
|
res/cardsfolder/sea_scryer.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/sea_serpent.txt -text svneol=native#text/plain
|
res/cardsfolder/sea_serpent.txt -text svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/sea_gate_oracle.txt
Normal file
9
res/cardsfolder/sea_gate_oracle.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Sea Gate Oracle
|
||||||
|
ManaCost:2 U
|
||||||
|
Types:Creature Human Wizard
|
||||||
|
Text:When CARDNAME enters the battlefield, look at the top two cards of your library. Put one of them into your hand and the other on the bottom of your library.
|
||||||
|
PT:1/3
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Common
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sea_gate_oracle.jpg
|
||||||
|
End
|
||||||
@@ -14053,6 +14053,45 @@ public class CardFactory_Creatures {
|
|||||||
card.addSpellAbility(ability);
|
card.addSpellAbility(ability);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
//*************** START *********** START **************************
|
||||||
|
else if(cardName.equals("Sea Gate Oracle")) {
|
||||||
|
final Ability ability = new Ability(card, "") {
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
if(card.getController().isHuman()) {
|
||||||
|
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, card.getController());
|
||||||
|
int maxCards = lib.size();
|
||||||
|
maxCards = Math.min(maxCards, 2);
|
||||||
|
if(maxCards == 0) return;
|
||||||
|
CardList topCards = new CardList();
|
||||||
|
//show top n cards:
|
||||||
|
for(int j = 0; j < maxCards; j++ ) {
|
||||||
|
topCards.add(lib.get(j));
|
||||||
|
}
|
||||||
|
Object o = AllZone.Display.getChoice("Put one card in your hand", topCards.toArray());
|
||||||
|
if(o != null) {
|
||||||
|
Card c_1 = (Card) o;
|
||||||
|
topCards.remove(c_1);
|
||||||
|
AllZone.GameAction.moveToHand(c_1);
|
||||||
|
}
|
||||||
|
for(Card c:topCards) {
|
||||||
|
AllZone.GameAction.moveToBottomOfLibrary(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
ability.setStackDescription(cardName+" - Look at the top two cards of your library. Put one of them into your hand and the other on the bottom of your library.");
|
||||||
|
Command intoPlay = new Command() {
|
||||||
|
private static final long serialVersionUID = -4300804642226899861L;
|
||||||
|
|
||||||
|
public void execute() {
|
||||||
|
AllZone.Stack.add(ability);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
card.addComesIntoPlayCommand(intoPlay);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
|
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user