magarena/release/Magarena/scripts/Wolfbriar_Elemental.groovy

28 lines
852 B
Groovy
Raw Normal View History

2013-05-18 04:39:25 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-23 18:29:26 -07:00
final MagicPayedCost payedCost) {
2013-06-19 07:23:35 -07:00
return payedCost.isKicked() ?
2013-05-18 04:39:25 -07:00
new MagicEvent(
permanent,
2013-06-19 07:23:35 -07:00
payedCost.getKicker(),
2013-05-18 04:39:25 -07:00
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()
));
}
}
]