magarena/release/Magarena/scripts/Kokusho__the_Evening_Star.g...

19 lines
610 B
Groovy

[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
this,
"Your opponent loses 5 life. You gain 5 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicChangeLifeAction(player.getOpponent(),-5));
game.doAction(new MagicChangeLifeAction(player,5));
}
}
]