2013-04-12 19:58:51 -07:00
|
|
|
[
|
2013-06-30 03:29:46 -07:00
|
|
|
new MagicWhenDiesTrigger() {
|
2013-04-12 19:58:51 -07:00
|
|
|
@Override
|
2013-06-30 03:29:46 -07:00
|
|
|
public MagicEvent getEvent(final MagicPermanent permanent) {
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"Each player loses 3 life."
|
|
|
|
);
|
2013-04-12 19:58:51 -07:00
|
|
|
}
|
|
|
|
@Override
|
2013-06-15 07:08:11 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:58:51 -07:00
|
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
|
|
game.doAction(new MagicChangeLifeAction(player,-3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|