From e3192a7361b3f10a9f19c94944ba4a2548e685a5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 11 Jan 2020 22:02:09 -0500 Subject: [PATCH] fixed Escape not working with targets --- .../java/mage/abilities/keyword/EscapeAbility.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java b/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java index 8535d48f6e..ecaa1e6c47 100644 --- a/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java @@ -1,7 +1,6 @@ package mage.abilities.keyword; import mage.abilities.SpellAbility; -import mage.abilities.costs.Cost; import mage.abilities.costs.common.ExileFromGraveCost; import mage.abilities.costs.mana.ManaCostsImpl; import mage.cards.Card; @@ -27,16 +26,16 @@ public class EscapeAbility extends SpellAbility { private final int exileCount; public EscapeAbility(Card card, String manaCost, int exileCount) { - super(new ManaCostsImpl(manaCost), card.getName() + " with escape"); + super(card.getSpellAbility()); this.newId(); this.zone = Zone.GRAVEYARD; this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE; this.manaCost = manaCost; this.exileCount = exileCount; - - Cost cost = new ExileFromGraveCost(new TargetCardInYourGraveyard(exileCount, filter)); - cost.setText(""); - this.addCost(cost); + this.getManaCosts().clear(); + this.getManaCostsToPay().clear(); + this.addManaCost(new ManaCostsImpl(manaCost)); + this.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(exileCount, filter))); } private EscapeAbility(final EscapeAbility ability) {