magarena/release/Magarena/scripts/Kiss_of_the_Amesha.groovy

25 lines
844 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.POS_TARGET_PLAYER,
this,
"Target player\$ gains 7 life and draws two cards."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer player) {
game.doAction(new MagicChangeLifeAction(player,7));
game.doAction(new MagicDrawAction(player,2));
}
});
}
}
]