magarena/release/Magarena/scripts/Stonybrook_Schoolmaster.groovy

22 lines
805 B
Groovy
Raw Normal View History

2013-03-17 23:09:10 -07:00
[
new MagicWhenBecomesTappedTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:03:18 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent tapped) {
return (permanent == tapped) ?
new MagicEvent(
2012-10-07 02:03:18 -07:00
permanent,
this,
"PN puts a 1/1 blue Merfolk Wizard creature token onto the battlefield."
):
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
2012-08-30 07:07:12 -07:00
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Merfolk Wizard")));
2012-06-17 05:19:08 -07:00
}
2013-03-17 23:09:10 -07:00
}
]