magarena/release/Magarena/scripts/Worldspine_Wurm.groovy

21 lines
679 B
Groovy

[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicMoveCardAction data) {
return new MagicEvent(
permanent,
this,
"PN puts three 5/5 green Wurm creature tokens with trample onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Wurm5"),
3
));
}
}
]