2013-04-12 19:58:51 -07:00
|
|
|
[
|
|
|
|
new MagicWhenBlocksTrigger() {
|
|
|
|
@Override
|
2013-06-15 03:20:38 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent creature) {
|
2013-04-12 19:58:51 -07:00
|
|
|
return (creature == permanent.getEnchantedCreature()) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"PN gains 3 life."
|
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-15 03:20:38 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:58:51 -07:00
|
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|