magarena/release/Magarena/scripts/Phyrexian_Arena.groovy

22 lines
757 B
Groovy

[
new MagicAtUpkeepTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
new MagicEvent(
permanent,
this,
"PN draws a card and loses 1 life."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicDrawAction(player,1));
game.doAction(new MagicChangeLifeAction(player,-1));
}
}
]