magarena/release/Magarena/scripts/Careful_Study.groovy

18 lines
604 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,
"PN draws two cards, then discard two cards."
2013-05-24 07:27:59 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),2));
game.addEvent(new MagicDiscardEvent(event.getSource(),event.getPlayer(),2));
2013-05-24 07:27:59 -07:00
}
}
]