magarena/release/Magarena/scripts/Goblin_Marshal.groovy

33 lines
842 B
Groovy
Raw Normal View History

def action = {
final MagicGame game, final MagicEvent event ->
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Goblin1"),
2
));
} as MagicEventAction
def event = {
final MagicPermanent permanent ->
return new MagicEvent(
permanent,
action,
"PN puts two 1/1 red Goblin creature tokens onto the battlefield."
);
}
2013-05-27 02:17:37 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
return event(permanent);
2013-06-23 18:29:26 -07:00
}
2013-05-27 02:17:37 -07:00
},
new MagicWhenDiesTrigger() {
2013-05-27 02:17:37 -07:00
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return event(permanent);
2013-05-27 02:17:37 -07:00
}
}
]