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

22 lines
686 B
Groovy

[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
permanent.getController(),
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));
}
}
]