magarena/release/Magarena/scripts/Seer_s_Sundial.groovy

26 lines
755 B
Groovy

[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
permanent.getController(),
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(),1));
}
}
}
]