magarena/release/Magarena/scripts/Phyrexian_Gargantua.groovy

19 lines
650 B
Groovy
Raw Normal View History

2013-05-24 03:38:59 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-05-24 03:38:59 -07:00
return new MagicEvent(
permanent,
this,
"PN draws two cards and loses 2 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player=event.getPlayer();
game.doAction(new MagicDrawAction(player,2));
game.doAction(new MagicChangeLifeAction(player,-2));
}
}
]