magarena/release/Magarena/scripts/Careful_Study.groovy

19 lines
640 B
Groovy
Raw Normal View History

2013-05-24 07:27:59 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Draw two cards, then discard two cards."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicDrawAction(player,2));
game.addEvent(new MagicDiscardEvent(event.getSource(),player,2,false));
}
}
]