From 08d9e8cfa02a1920064fae90e93a2d30a8c6c8e4 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Thu, 17 Sep 2020 09:41:40 -0500 Subject: [PATCH] - Fixed #7031. --- Mage/src/main/java/mage/game/permanent/PermanentCard.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/game/permanent/PermanentCard.java b/Mage/src/main/java/mage/game/permanent/PermanentCard.java index a78bcebe14..5fed87d284 100644 --- a/Mage/src/main/java/mage/game/permanent/PermanentCard.java +++ b/Mage/src/main/java/mage/game/permanent/PermanentCard.java @@ -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,7 +90,11 @@ public class PermanentCard extends PermanentImpl { } } else { this.abilities = card.getAbilities().copy(); - this.spellAbility = null; // will be set on first getSpellAbility call if card has one. + // 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 /*