diff --git a/Mage.Sets/src/mage/cards/c/CankerousThirst.java b/Mage.Sets/src/mage/cards/c/CankerousThirst.java index f184d3facb5..a26106f24d0 100644 --- a/Mage.Sets/src/mage/cards/c/CankerousThirst.java +++ b/Mage.Sets/src/mage/cards/c/CankerousThirst.java @@ -27,9 +27,11 @@ */ package mage.cards.c; +import java.util.UUID; import mage.abilities.condition.LockedInCondition; import mage.abilities.condition.common.ManaWasSpentCondition; import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.ContinuousEffect; import mage.abilities.effects.common.InfoEffect; import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.cards.CardImpl; @@ -38,31 +40,33 @@ import mage.constants.CardType; import mage.constants.ColoredManaSymbol; import mage.constants.Duration; import mage.target.common.TargetCreaturePermanent; +import mage.target.targetpointer.SecondTargetPointer; import mage.watchers.common.ManaSpentToCastWatcher; -import java.util.UUID; - /** * * @author jeffwadsworth - + * */ public class CankerousThirst extends CardImpl { public CankerousThirst(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{B/G}"); - + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B/G}"); // If {B} was spent to cast Cankerous Thirst, you may have target creature get -3/-3 until end of turn. If {G} was spent to cast Cankerous Thirst, you may have target creature get +3/+3 until end of turn. this.getSpellAbility().addEffect(new ConditionalContinuousEffect( new BoostTargetEffect(-3, -3, Duration.EndOfTurn), new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.B)), "If {B} was spent to cast {this}, you may have target creature get -3/-3 until end of turn")); + + ContinuousEffect effect = new BoostTargetEffect(3, 3, Duration.EndOfTurn); + effect.setTargetPointer(new SecondTargetPointer()); this.getSpellAbility().addEffect(new ConditionalContinuousEffect( - new BoostTargetEffect(3, 3, Duration.EndOfTurn), + effect, new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.G)), "If {G} was spent to cast {this}, you may have target creature get +3/+3 until end of turn")); this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); this.getSpellAbility().addEffect(new InfoEffect("(Do both if {B}{G} was spent.)")); this.getSpellAbility().addWatcher(new ManaSpentToCastWatcher()); } @@ -75,4 +79,5 @@ public class CankerousThirst extends CardImpl { public CankerousThirst copy() { return new CankerousThirst(this); } + }