magarena/release/Magarena/scripts/Fleshbag_Marauder.groovy

28 lines
833 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) {
for (final MagicPlayer player : game.getPlayers()) {
game.addEvent(new MagicSacrificePermanentEvent(
event.getSource(),
player,
MagicTargetChoice.SACRIFICE_CREATURE
));
}
}
}
]