magarena/release/Magarena/scripts/Soulcage_Fiend.groovy

19 lines
540 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenDiesTrigger() {
2013-04-12 19:58:51 -07:00
@Override
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));
}
}
}
]