magarena/release/Magarena/scripts/Seer_s_Sundial.groovy

23 lines
661 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
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."
2013-04-12 19:58:51 -07:00
);
}
2013-06-23 18:29:26 -07:00
2013-04-12 19:58:51 -07:00
@Override
2013-06-15 06:13:32 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
if (event.isYes()) {
game.doAction(new MagicDrawAction(event.getPlayer()));
2013-04-12 19:58:51 -07:00
}
2013-06-23 18:29:26 -07:00
}
2013-04-12 19:58:51 -07:00
}
]