magarena/release/Magarena/scripts/Abyssal_Gatekeeper.groovy

24 lines
749 B
Groovy
Raw Normal View History

[
2013-06-15 17:38:51 -07:00
new MagicWhenDiesTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
return new MagicEvent(
permanent,
this,
"Each player sacrifices a creature."
);
}
2013-06-23 18:29:26 -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(
event.getSource(),
player,
MagicTargetChoice.SACRIFICE_CREATURE
));
}
}
}
]