forked from External/mage
* Fixed possible problem with setting of the spellAbility during card copies (related to eecaa232f5).
This commit is contained in:
parent
24098bf8cc
commit
aad36dda19
2 changed files with 2 additions and 17 deletions
|
|
@ -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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue