magarena/release/Magarena/scripts/Seer_s_Sundial.groovy

23 lines
661 B
Groovy

[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
new MagicMayChoice(
new MagicPayManaCostChoice(MagicManaCost.create("{2}"))
),
this,
"You may\$ pay {2}\$. If you do, draw a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isYes()) {
game.doAction(new MagicDrawAction(event.getPlayer()));
}
}
}
]