magarena/release/Magarena/scripts/Sift.groovy

19 lines
631 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Draw three cards, then discard a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicDrawAction(player,3));
game.addEvent(new MagicDiscardEvent(event.getSource(),player));
}
}
]