magarena/release/Magarena/scripts/Sylvan_Scrying.groovy

20 lines
673 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN searches his or her library for a land card, reveal it, and put it into his or her hand. Then shuffle PN's library."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.addEvent(new MagicSearchIntoHandEvent(
event,
MagicTargetChoice.LAND_CARD_FROM_LIBRARY
));
}
}
]