magarena/release/Magarena/scripts/Maalfeld_Twins.groovy

27 lines
887 B
Groovy
Raw Normal View History

2013-05-17 22:11:13 -07:00
[
new MagicWhenPutIntoGraveyardTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicGraveyardTriggerData triggerData) {
return (triggerData.fromLocation == MagicLocationType.Play) ?
new MagicEvent(
permanent,
this,
"PN puts two 2/2 black Zombie " +
"creature tokens onto the battlefield."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Zombie"),
2
));
}
}
]