1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 17:00:16 -09:00

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

This commit is contained in:
LevelX2 2020-07-14 23:06:03 +02:00
parent bd9738f128
commit 49ab4e0992

View file

@ -135,11 +135,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
secondSideCardClazz = card.secondSideCardClazz; secondSideCardClazz = card.secondSideCardClazz;
nightCard = card.nightCard; nightCard = card.nightCard;
} }
if (card.spellAbility != null) { // if (card.spellAbility != null) {
spellAbility = (SpellAbility) abilities.get(0); // spellAbility = (SpellAbility) abilities.get(0);
} else { // } else {
spellAbility = null; spellAbility = null; // will be set on first getSpellAbility call.
} // }
flipCard = card.flipCard; flipCard = card.flipCard;
flipCardName = card.flipCardName; flipCardName = card.flipCardName;