2013-06-30 03:12:03 -07:00
|
|
|
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) {
|
2013-06-30 03:12:03 -07:00
|
|
|
return event(permanent);
|
2013-06-23 18:29:26 -07:00
|
|
|
}
|
2013-05-27 00:04:30 -07:00
|
|
|
},
|
2013-06-30 03:12:03 -07:00
|
|
|
new MagicWhenDiesTrigger() {
|
2013-05-27 00:04:30 -07:00
|
|
|
@Override
|
2013-06-30 03:12:03 -07:00
|
|
|
public MagicEvent getEvent(final MagicPermanent permanent) {
|
|
|
|
return event(permanent);
|
2013-05-27 00:04:30 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|