magarena/release/Magarena/scripts/Gods__Eye__Gate_to_the_Reik...

24 lines
826 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenPutIntoGraveyardTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicGraveyardTriggerData triggerData) {
return (triggerData.fromLocation == MagicLocationType.Play) ?
new MagicEvent(
permanent,
this,
"PN puts a 1/1 colorless Spirit creature token onto the battlefield."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Spirit1")
));
}
}
]