This commit is contained in:
jeffwadsworth 2020-09-17 09:41:40 -05:00
parent 1125d9cca1
commit 08d9e8cfa0

View file

@ -8,6 +8,8 @@ import mage.abilities.Abilities;
import mage.abilities.Ability;
import mage.abilities.costs.mana.ManaCost;
import mage.abilities.costs.mana.ManaCosts;
import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.TransformAbility;
import mage.cards.Card;
import mage.cards.LevelerCard;
@ -88,8 +90,12 @@ public class PermanentCard extends PermanentImpl {
}
} else {
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.
}
}
// adventure cards must show adventure spell info on battlefield too
/*
if (card instanceof AdventureCard) {