magarena/release/Magarena/scripts/Soul_Feast.groovy

23 lines
829 B
Groovy
Raw Normal View History

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