Merge pull request #2686 from MTGfan/master

Guardian Angel and added Dynamic Value constructor to PreventDamageToTargetEffect
This commit is contained in:
LevelX2 2016-12-16 22:57:21 +01:00 committed by GitHub
commit 8e51e3a2bf
6 changed files with 86 additions and 0 deletions

View file

@ -31,6 +31,7 @@ package mage.abilities.effects.common;
import mage.constants.Duration;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.PreventionEffectImpl;
import mage.game.Game;
import mage.game.events.GameEvent;
@ -57,6 +58,10 @@ public class PreventDamageToTargetEffect extends PreventionEffectImpl {
super(duration, amount, onlyCombat);
}
public PreventDamageToTargetEffect(Duration duration, boolean onlyCombat, boolean consumable, DynamicValue amountToPreventDynamic) {
super(duration, 0, onlyCombat, consumable, amountToPreventDynamic);
}
public PreventDamageToTargetEffect(final PreventDamageToTargetEffect effect) {
super(effect);
}