23 lines
865 B
Groovy
23 lines
865 B
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.NEG_TARGET_PLAYER,
|
|
this,
|
|
"SN deals 3 damage to target player\$. That player discards two cards."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPlayer(game, {
|
|
final MagicPlayer player ->
|
|
final MagicDamage damage=new MagicDamage(event.getSource(),player,3);
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
game.addEvent(new MagicDiscardEvent(event.getSource(),player,2));
|
|
});
|
|
}
|
|
}
|
|
]
|