diff --git a/Mage/src/main/java/mage/abilities/costs/common/DiscardSourceCost.java b/Mage/src/main/java/mage/abilities/costs/common/DiscardSourceCost.java index ecdca74662..9ef2d9114b 100644 --- a/Mage/src/main/java/mage/abilities/costs/common/DiscardSourceCost.java +++ b/Mage/src/main/java/mage/abilities/costs/common/DiscardSourceCost.java @@ -28,7 +28,6 @@ package mage.abilities.costs.common; -import java.util.UUID; import mage.abilities.Ability; import mage.abilities.costs.Cost; import mage.abilities.costs.CostImpl; @@ -36,16 +35,25 @@ import mage.cards.Card; import mage.game.Game; import mage.players.Player; +import java.util.UUID; + /** * * @author BetaSteward_at_googlemail.com */ public class DiscardSourceCost extends CostImpl { + private boolean nameCard = true; + public DiscardSourceCost() {} + public DiscardSourceCost(boolean nameCard){ + this.nameCard = nameCard; + } + public DiscardSourceCost(DiscardSourceCost cost) { super(cost); + nameCard = cost.nameCard; } @Override @@ -67,7 +75,12 @@ public class DiscardSourceCost extends CostImpl { @Override public String getText() { - return "Discard {this}"; + if(nameCard) { + return "Discard {this}"; + } + else{ + return "Discard this card"; + } } @Override diff --git a/Mage/src/main/java/mage/abilities/keyword/CyclingAbility.java b/Mage/src/main/java/mage/abilities/keyword/CyclingAbility.java index b348fe58a2..a8e42850ed 100644 --- a/Mage/src/main/java/mage/abilities/keyword/CyclingAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/CyclingAbility.java @@ -48,14 +48,14 @@ public class CyclingAbility extends ActivatedAbilityImpl { public CyclingAbility(Cost cost) { super(Zone.HAND, new DrawCardSourceControllerEffect(1), cost); - this.addCost(new DiscardSourceCost()); + this.addCost(new DiscardSourceCost(false)); this.cost = cost; this.text = "Cycling"; } public CyclingAbility(Cost cost, FilterCard filter, String text) { super(Zone.HAND, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), cost); - this.addCost(new DiscardSourceCost()); + this.addCost(new DiscardSourceCost(false)); this.cost = cost; this.text = text; }