From 547257bc60f2470d5077ce6004328a4217278687 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 21 Jun 2018 19:25:09 -0400 Subject: [PATCH] fixed Nightmare's Thirst giving +X/+X instead of -X/-X (fixes #5050) --- Mage.Sets/src/mage/cards/n/NightmaresThirst.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/n/NightmaresThirst.java b/Mage.Sets/src/mage/cards/n/NightmaresThirst.java index 2fc9b7a98f..9af916beea 100644 --- a/Mage.Sets/src/mage/cards/n/NightmaresThirst.java +++ b/Mage.Sets/src/mage/cards/n/NightmaresThirst.java @@ -1,6 +1,8 @@ package mage.cards.n; import java.util.UUID; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.MultipliedValue; import mage.abilities.effects.common.GainLifeEffect; import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.abilities.dynamicvalue.common.ControllerGotLifeCount; @@ -22,11 +24,10 @@ public final class NightmaresThirst extends CardImpl { // You gain 1 life. Target creature gets -X/-X until end of turn, where X is the amount of life you gained this turn. this.getSpellAbility().addEffect(new GainLifeEffect(1)); + DynamicValue xValue = new MultipliedValue(ControllerGotLifeCount.getInstance(), -1); this.getSpellAbility().addEffect(new BoostTargetEffect( - ControllerGotLifeCount.getInstance(), - ControllerGotLifeCount.getInstance(), - Duration.EndOfTurn, true - )); + xValue, xValue, Duration.EndOfTurn, true + ).setText("Target creature gets -X/-X until end of turn, where X is the amount of life you gained this turn.")); this.getSpellAbility().addTarget(new TargetCreaturePermanent()); this.getSpellAbility().addWatcher(new PlayerGainedLifeWatcher()); }