magarena/release/Magarena/scripts/Careful_Study.groovy

19 lines
640 B
Groovy

[
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));
}
}
]