magarena/release/Magarena/scripts/Phyrexian_Arena.groovy

22 lines
757 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,
"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
public void executeEvent(
2011-08-13 06:37:22 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-08-30 07:02:45 -07:00
final MagicPlayer player=event.getPlayer();
2012-06-17 05:19:08 -07:00
game.doAction(new MagicDrawAction(player,1));
game.doAction(new MagicChangeLifeAction(player,-1));
}
2013-03-17 23:09:21 -07:00
}
]