25 lines
785 B
Groovy
25 lines
785 B
Groovy
|
[
|
||
|
new MagicWhenBlocksTrigger() {
|
||
|
@Override
|
||
|
public MagicEvent executeTrigger(
|
||
|
final MagicGame game,
|
||
|
final MagicPermanent permanent,
|
||
|
final MagicPermanent creature) {
|
||
|
return (creature == permanent.getEnchantedCreature()) ?
|
||
|
new MagicEvent(
|
||
|
permanent,
|
||
|
this,
|
||
|
"PN gains 3 life."
|
||
|
):
|
||
|
MagicEvent.NONE;
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(
|
||
|
final MagicGame game,
|
||
|
final MagicEvent event,
|
||
|
final Object[] choiceResults) {
|
||
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
|
||
|
}
|
||
|
}
|
||
|
]
|