magarena/release/Magarena/scripts/Tuktuk_the_Explorer.groovy

22 lines
867 B
Groovy

[
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 legendary 5/5 colorless Goblin Golem artifact creature token " +
"named Tuktuk the Returned onto the battlefield."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Tuktuk the Returned")));
}
}
]