magarena/release/Magarena/scripts/Mogg_War_Marshal.groovy

32 lines
827 B
Groovy
Raw Normal View History

def action = {
final MagicGame game, final MagicEvent event ->
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Goblin1")
));
} as MagicEventAction
def event = {
final MagicPermanent permanent ->
return new MagicEvent(
permanent,
action,
"PN puts a 1/1 red Goblin creature token onto the battlefield."
);
}
2013-05-27 00:04:30 -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 00:04:30 -07:00
},
new MagicWhenDiesTrigger() {
2013-05-27 00:04:30 -07:00
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return event(permanent);
2013-05-27 00:04:30 -07:00
}
}
]