2013-06-01 04:33:07 -07:00
|
|
|
[
|
2013-06-15 17:38:51 -07:00
|
|
|
new MagicWhenDiesTrigger() {
|
|
|
|
@Override
|
2013-10-18 22:10:30 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
|
2013-06-01 04:33:07 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"Each player sacrifices a creature."
|
|
|
|
);
|
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
|
2013-06-01 04:33:07 -07:00
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
2013-06-15 17:38:51 -07:00
|
|
|
game.addEvent(new MagicSacrificePermanentEvent(
|
2013-06-01 04:33:07 -07:00
|
|
|
event.getSource(),
|
|
|
|
player,
|
|
|
|
MagicTargetChoice.SACRIFICE_CREATURE
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|