mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Converted one ability of Oracle of Mul Daya to script.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
Name:Oracle of Mul Daya
|
||||
ManaCost:3 G
|
||||
Types:Creature Elf Shaman
|
||||
Text:You may play an additional land on each of your turns.\r\nYou may play the top card of your library if it's a land card.
|
||||
Text:You may play an additional land on each of your turns.
|
||||
PT:2/2
|
||||
K:Play with the top card of your library revealed.
|
||||
S:Mode$ Continuous | Affected$ Land.TopLibrary+YouCtrl | AffectedZone$ Library | AddHiddenKeyword$ HIDDEN May be played | Description$ You may play the top card of your library if it's a land card.
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/oracle_of_mul_daya.jpg
|
||||
SetInfo:ZEN|Rare|http://magiccards.info/scans/en/zen/172.jpg
|
||||
|
||||
@@ -221,41 +221,6 @@ public class CardFactory_Creatures {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Oracle of Mul Daya")) {
|
||||
final SpellAbility ability = new Ability(card, "0") {
|
||||
private static final long serialVersionUID = 2902408812353813L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
// TODO: change to static ability?
|
||||
CardList library = card.getController().getCardsIn(Zone.Library);
|
||||
if (library.size() == 0)
|
||||
return;
|
||||
|
||||
Card top = library.get(0);
|
||||
if (top.isLand())
|
||||
card.getController().playLand(top);
|
||||
}//resolve()
|
||||
|
||||
@Override
|
||||
public boolean canPlay() {
|
||||
CardList library = card.getController().getCardsIn(Zone.Library);
|
||||
if (library.size() == 0) return false;
|
||||
PlayerZone play = card.getController().getZone(Constant.Zone.Battlefield);
|
||||
boolean canPlayLand = card.getController().canPlayLand();
|
||||
|
||||
return (play.contains(card) && library.get(0).isLand() && canPlayLand);
|
||||
}
|
||||
};//SpellAbility
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getController()).append(" - plays land from top of library.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
card.addSpellAbility(ability);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if (cardName.equals("Drekavac")) {
|
||||
final Input discard = new Input() {
|
||||
|
||||
Reference in New Issue
Block a user