19 lines
600 B
Groovy
19 lines
600 B
Groovy
[
|
|
new MagicWhenDiesTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"Each player loses 3 life."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
game.doAction(new MagicChangeLifeAction(player,-3));
|
|
}
|
|
}
|
|
}
|
|
]
|