2013-10-16 00:33:54 -07:00
|
|
|
[
|
|
|
|
new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.PREVENT_DAMAGE) {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
|
|
|
if (damage.isCombat() &&
|
|
|
|
(damage.getTarget() == permanent)) {
|
|
|
|
// Replacement effect. Generates no event or action.
|
|
|
|
damage.prevent();
|
|
|
|
}
|
|
|
|
return MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|