From 49ab4e099247b10b0f15d0b104112ad153918cea Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 14 Jul 2020 23:06:03 +0200 Subject: [PATCH] * Fixed possible problem with setting of the spellAbility during card copies (related to eecaa232f5c106e5e8f483db1a30606ead1562e9). --- Mage/src/main/java/mage/cards/CardImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage/src/main/java/mage/cards/CardImpl.java b/Mage/src/main/java/mage/cards/CardImpl.java index bdf5a1f66e..bd153678b2 100644 --- a/Mage/src/main/java/mage/cards/CardImpl.java +++ b/Mage/src/main/java/mage/cards/CardImpl.java @@ -135,11 +135,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card { secondSideCardClazz = card.secondSideCardClazz; nightCard = card.nightCard; } - if (card.spellAbility != null) { - spellAbility = (SpellAbility) abilities.get(0); - } else { - spellAbility = null; - } +// if (card.spellAbility != null) { +// spellAbility = (SpellAbility) abilities.get(0); +// } else { + spellAbility = null; // will be set on first getSpellAbility call. +// } flipCard = card.flipCard; flipCardName = card.flipCardName;