2013-04-12 19:58:51 -07:00
|
|
|
[
|
|
|
|
new MagicWhenOtherComesIntoPlayTrigger() {
|
|
|
|
@Override
|
2013-06-07 01:44:36 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent otherPermanent) {
|
2013-04-12 19:58:51 -07:00
|
|
|
return (otherPermanent.isFriend(permanent) &&
|
|
|
|
otherPermanent.hasSubType(MagicSubType.Angel)) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
2013-06-15 07:27:32 -07:00
|
|
|
"PN gains 1 life."
|
|
|
|
) :
|
2013-04-12 19:58:51 -07:00
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-07 01:44:36 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-06-23 18:29:26 -07:00
|
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
|
|
|
|
}
|
2013-04-12 19:58:51 -07:00
|
|
|
}
|
|
|
|
]
|