magarena/release/Magarena/scripts/Night_s_Whisper.groovy

22 lines
720 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN draws two cards and loses 2 life."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
final MagicPlayer player = event.getPlayer();
game.doAction(new MagicDrawAction(player,2));
game.doAction(new MagicChangeLifeAction(player,-2));
}
}
]