18 lines
637 B
Groovy
18 lines
637 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN gains 1 life for each card in his or her graveyard"
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final MagicPlayer player = event.getPlayer();
|
|
game.doAction(new MagicChangeLifeAction(player, player.getGraveyard().size()));
|
|
}
|
|
}
|
|
]
|