mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
fixed Escape not working with targets
This commit is contained in:
parent
0533854d1d
commit
e3192a7361
1 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
||||||
package mage.abilities.keyword;
|
package mage.abilities.keyword;
|
||||||
|
|
||||||
import mage.abilities.SpellAbility;
|
import mage.abilities.SpellAbility;
|
||||||
import mage.abilities.costs.Cost;
|
|
||||||
import mage.abilities.costs.common.ExileFromGraveCost;
|
import mage.abilities.costs.common.ExileFromGraveCost;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
|
@ -27,16 +26,16 @@ public class EscapeAbility extends SpellAbility {
|
||||||
private final int exileCount;
|
private final int exileCount;
|
||||||
|
|
||||||
public EscapeAbility(Card card, String manaCost, int exileCount) {
|
public EscapeAbility(Card card, String manaCost, int exileCount) {
|
||||||
super(new ManaCostsImpl(manaCost), card.getName() + " with escape");
|
super(card.getSpellAbility());
|
||||||
this.newId();
|
this.newId();
|
||||||
this.zone = Zone.GRAVEYARD;
|
this.zone = Zone.GRAVEYARD;
|
||||||
this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
|
this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
|
||||||
this.manaCost = manaCost;
|
this.manaCost = manaCost;
|
||||||
this.exileCount = exileCount;
|
this.exileCount = exileCount;
|
||||||
|
this.getManaCosts().clear();
|
||||||
Cost cost = new ExileFromGraveCost(new TargetCardInYourGraveyard(exileCount, filter));
|
this.getManaCostsToPay().clear();
|
||||||
cost.setText("");
|
this.addManaCost(new ManaCostsImpl(manaCost));
|
||||||
this.addCost(cost);
|
this.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(exileCount, filter)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private EscapeAbility(final EscapeAbility ability) {
|
private EscapeAbility(final EscapeAbility ability) {
|
||||||
|
|
Loading…
Reference in a new issue