magarena/release/Magarena/scripts/Dragonmaster_Outcast.groovy

22 lines
829 B
Groovy
Raw Normal View History

2013-03-31 22:38:16 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-09-21 07:40:38 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return (permanent.isController(upkeepPlayer) &&
upkeepPlayer.getNrOfPermanentsWithType(MagicType.Land) >= 6) ?
2011-08-13 08:52:26 -07:00
new MagicEvent(
2012-09-21 07:40:38 -07:00
permanent,
this,
2013-03-31 22:38:16 -07:00
"PN puts a 5/5 red Dragon 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
public void executeEvent(
2011-08-13 08:52:26 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-08-30 06:09:47 -07:00
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Dragon5")));
2012-06-17 05:19:08 -07:00
}
2013-03-31 22:38:16 -07:00
}
]