magarena/incomplete/Fill_with_Fright.groovy

23 lines
799 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_PLAYER,
this,
"Target player\$ discards two cards. " +
"Scry 2."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPlayer(game, {
final MagicPlayer player ->
game.addEvent(new MagicDiscardEvent(event.getSource(),player,2));
game.addEvent(new MagicScryXEvent(event.getSource(),event.getPlayer(),2));
});
}
}
]