- Converted one ability of Oracle of Mul Daya to script.

This commit is contained in:
Sloth
2011-10-25 08:44:57 +00:00
parent 88c63fa938
commit 972acc9f41
2 changed files with 2 additions and 36 deletions

View File

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