magarena/release/Magarena/scripts/Ambition_s_Cost.groovy

21 lines
655 B
Groovy

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