19 lines
670 B
Groovy
19 lines
670 B
Groovy
[
|
|
new MagicWhenDiesTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
|
|
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));
|
|
}
|
|
}
|
|
]
|