magarena/release/Magarena/scripts/Griffin_Guide.groovy

22 lines
797 B
Groovy
Raw Normal View History

2013-03-18 02:55:28 -07:00
[
new MagicWhenOtherDiesTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:18:51 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent died) {
return permanent.getEnchantedCreature() == died ?
2012-06-17 05:19:08 -07:00
new MagicEvent(
2011-09-04 00:49:20 -07:00
permanent,
this,
2012-10-07 02:18:51 -07:00
"Put a 2/2 white Griffin creature token with flying onto the battlefield."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
2013-06-15 03:20:38 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
2013-10-23 19:56:36 -07:00
TokenCardDefinitions.get("2/2 white Griffin creature token with flying")
2013-06-15 03:20:38 -07:00
));
2012-06-17 05:19:08 -07:00
}
2013-03-18 02:55:28 -07:00
}
]