* Fixed possible problem with setting of the spellAbility during card copies (related to eecaa232f5).

This commit is contained in:
LevelX2 2020-07-14 23:18:47 +02:00
parent 24098bf8cc
commit aad36dda19
2 changed files with 2 additions and 17 deletions

View file

@ -6,7 +6,6 @@ import javax.lang.model.SourceVersion;
import mage.MageObject;
import mage.abilities.Abilities;
import mage.abilities.Ability;
import mage.abilities.SpellAbility;
import mage.abilities.costs.mana.ManaCost;
import mage.abilities.costs.mana.ManaCosts;
import mage.abilities.keyword.TransformAbility;
@ -89,9 +88,7 @@ public class PermanentCard extends PermanentImpl {
}
} else {
this.abilities = card.getAbilities().copy();
if (this.spellAbility != null) {
this.spellAbility = (SpellAbility) this.abilities.get(0);
}
this.spellAbility = null; // will be set on first getSpellAbility call if card has one.
}
// adventure cards must show adventure spell info on battlefield too
/*