magarena/release/Magarena/scripts/Kiss_of_the_Amesha.groovy

23 lines
811 B
Groovy
Raw Normal View History

2013-04-01 07:01:26 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.POS_TARGET_PLAYER,
this,
2013-04-01 07:28:22 -07:00
"Target player\$ gains 7 life and draws two cards."
2013-04-01 07:01:26 -07:00
);
}
@Override
2013-06-15 03:09:37 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-01 07:01:26 -07:00
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer player) {
game.doAction(new MagicChangeLifeAction(player,7));
game.doAction(new MagicDrawAction(player,2));
}
});
}
}
]