magarena/release/Magarena/scripts/Phyrexian_Arena.groovy

21 lines
739 B
Groovy
Raw Normal View History

2013-03-17 23:09:21 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-09-21 19:40:31 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
2011-08-13 06:37:22 -07:00
new MagicEvent(
2012-09-21 19:40:31 -07:00
permanent,
this,
2013-06-15 07:27:32 -07:00
"PN draws a card and loses 1 life."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2012-08-30 07:02:45 -07:00
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicDrawAction(player));
2012-06-17 05:19:08 -07:00
game.doAction(new MagicChangeLifeAction(player,-1));
}
2013-03-17 23:09:21 -07:00
}
]