From dd5856e02c25c37633d22e842074866b7d03d445 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 20 Jan 2019 20:18:17 +0100 Subject: [PATCH] * Vengeful Dreams - Fixed that no target could be selected. --- Mage.Sets/src/mage/cards/v/VengefulDreams.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/cards/v/VengefulDreams.java b/Mage.Sets/src/mage/cards/v/VengefulDreams.java index 55b4b8520d..073079d0a4 100644 --- a/Mage.Sets/src/mage/cards/v/VengefulDreams.java +++ b/Mage.Sets/src/mage/cards/v/VengefulDreams.java @@ -1,6 +1,6 @@ - package mage.cards.v; +import java.util.UUID; import mage.abilities.Ability; import mage.abilities.costs.common.DiscardXTargetCost; import mage.abilities.effects.Effect; @@ -9,15 +9,12 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.filter.FilterCard; -import mage.filter.FilterPermanent; import mage.filter.common.FilterAttackingCreature; import mage.game.Game; import mage.target.Target; import mage.target.TargetPermanent; import mage.target.targetadjustment.TargetAdjuster; -import java.util.UUID; - /** * @author fireshoes */ @@ -48,11 +45,10 @@ public final class VengefulDreams extends CardImpl { enum VengefulDreamsAdjuster implements TargetAdjuster { instance; - private static final FilterPermanent filter = new FilterAttackingCreature(); @Override public void adjustTargets(Ability ability, Game game) { - Target target = new TargetPermanent(0, ability.getManaCostsToPay().getX(), filter, false); + Target target = new TargetPermanent(ability.getCosts().getVariableCosts().get(0).getAmount(), new FilterAttackingCreature()); ability.addTarget(target); } -} \ No newline at end of file +}