magarena/release/Magarena/scripts/Natural_Spring.groovy

24 lines
758 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.POS_TARGET_PLAYER,
this,
"Target player\$ gains 8 life."
);
}
@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,8));
}
});
}
}
]