magarena/release/Magarena/scripts/Bitterblossom.groovy

22 lines
912 B
Groovy
Raw Normal View History

2013-04-01 06:44:00 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-09-21 09:10:24 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
2012-06-17 05:19:08 -07:00
new MagicEvent(
2011-09-04 00:49:20 -07:00
permanent,
this,
2012-09-21 09:10:24 -07:00
"PN loses 1 life and puts a 1/1 black Faerie Rogue creature token with flying " +
2013-04-01 06:44:00 -07:00
"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 06:13:32 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2012-08-30 05:59:47 -07:00
final MagicPlayer player=event.getPlayer();
2012-06-17 05:19:08 -07:00
game.doAction(new MagicChangeLifeAction(player,-1));
2013-10-23 06:04:35 -07:00
game.doAction(new MagicPlayTokenAction(player,TokenCardDefinitions.get("1/1 black Faerie Rogue creature token with flying")));
2012-06-17 05:19:08 -07:00
}
2013-04-01 06:44:00 -07:00
}
]