2013-03-14 06:34:15 -07:00
|
|
|
[
|
|
|
|
new MagicWhenDamageIsDealtTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
|
|
|
final MagicPlayer player = permanent.getController();
|
|
|
|
final MagicTarget target = damage.getTarget();
|
2013-06-04 00:58:42 -07:00
|
|
|
if (player == target && player.controlsPermanent(MagicType.Creature) && player.getLife() < 1) {
|
2013-03-14 06:34:15 -07:00
|
|
|
player.setLife(1);
|
|
|
|
}
|
|
|
|
return MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|