magarena/release/Magarena/scripts/Phyrexian_Rager.groovy

20 lines
673 B
Groovy
Raw Normal View History

2013-03-14 06:34:55 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
2011-08-13 06:37:22 -07:00
permanent,
this,
2012-09-21 19:15:55 -07:00
"PN draws a card and loses 1 life.");
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:52 -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-14 06:34:55 -07:00
}
]