magarena/release/Magarena/scripts/Wolfbriar_Elemental.groovy

28 lines
852 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPayedCost payedCost) {
return payedCost.isKicked() ?
new MagicEvent(
permanent,
payedCost.getKicker(),
this,
"Put RN 2/2 green Wolf 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("Wolf"),
event.getRefInt()
));
}
}
]