26 lines
873 B
Groovy
26 lines
873 B
Groovy
[
|
|
new MagicWhenPutIntoGraveyardTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicGraveyardTriggerData triggerData) {
|
|
return (triggerData.fromLocation == MagicLocationType.Play) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
permanent.getController(),
|
|
this,
|
|
"Each player loses 3 life."):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
game.doAction(new MagicChangeLifeAction(player,-3));
|
|
}
|
|
}
|
|
}
|
|
]
|