32 lines
1.0 KiB
Groovy
32 lines
1.0 KiB
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 and loses 2 life."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
public void doAction(final MagicPlayer player) {
|
|
game.addEvent(new MagicDiscardEvent(
|
|
event.getSource(),
|
|
player,
|
|
2,
|
|
false
|
|
));
|
|
game.doAction(new MagicChangeLifeAction(player,-2));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|