2013-03-31 22:40:41 -07:00
|
|
|
[
|
|
|
|
new MagicWhenAttacksTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
2013-06-05 22:57:29 -07:00
|
|
|
return (permanent.isFriend(creature) &&
|
|
|
|
permanent.getController().getNrOfAttackers() == 1) ?
|
2013-03-31 22:40:41 -07:00
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
creature,
|
|
|
|
this,
|
2013-03-31 23:06:10 -07:00
|
|
|
"RN gains lifelink until end of turn."
|
2013-03-31 22:40:41 -07:00
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-05 22:57:29 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-05-21 05:26:01 -07:00
|
|
|
game.doAction(new MagicSetAbilityAction(event.getRefPermanent(),MagicAbility.Lifelink));
|
2013-03-31 22:40:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|