mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
- Fixed #7031.
This commit is contained in:
parent
1125d9cca1
commit
08d9e8cfa0
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,8 @@ import mage.abilities.Abilities;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.costs.mana.ManaCost;
|
import mage.abilities.costs.mana.ManaCost;
|
||||||
import mage.abilities.costs.mana.ManaCosts;
|
import mage.abilities.costs.mana.ManaCosts;
|
||||||
|
import mage.abilities.keyword.EnchantAbility;
|
||||||
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.abilities.keyword.TransformAbility;
|
import mage.abilities.keyword.TransformAbility;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
import mage.cards.LevelerCard;
|
import mage.cards.LevelerCard;
|
||||||
|
@ -88,8 +90,12 @@ public class PermanentCard extends PermanentImpl {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.abilities = card.getAbilities().copy();
|
this.abilities = card.getAbilities().copy();
|
||||||
|
// only set spellAbility to null if it has no targets IE: Dance of the Dead bug #7031
|
||||||
|
if (this.getSpellAbility() != null
|
||||||
|
&& this.getSpellAbility().getTargets().isEmpty()) {
|
||||||
this.spellAbility = null; // will be set on first getSpellAbility call if card has one.
|
this.spellAbility = null; // will be set on first getSpellAbility call if card has one.
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// adventure cards must show adventure spell info on battlefield too
|
// adventure cards must show adventure spell info on battlefield too
|
||||||
/*
|
/*
|
||||||
if (card instanceof AdventureCard) {
|
if (card instanceof AdventureCard) {
|
||||||
|
|
Loading…
Reference in a new issue