magarena/release/Magarena/scripts/Soul_Feast.groovy

25 lines
862 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
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,-4));
game.doAction(new MagicChangeLifeAction(event.getPlayer(),4));
}
});
}
}
]