29 lines
879 B
Groovy
29 lines
879 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPlayer player) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"Each player sacrifices a creature."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event,
|
|
final Object[] choiceResults) {
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
game.addEvent(new MagicSacrificePermanentEvent(
|
|
event.getSource(),
|
|
player,
|
|
MagicTargetChoice.SACRIFICE_CREATURE
|
|
));
|
|
}
|
|
}
|
|
}
|
|
]
|