Added the possibility to specify a name for Kicker cost and Retrace cost with "name()" keyword, implemented Escape cost with Retrace cost, implemented Fuse cost with Kicker cost, fixed several primitives.

This commit is contained in:
Vittorio Alfieri
2021-02-15 18:41:59 +01:00
parent f383d0b8a5
commit 60ca9e05c0
7 changed files with 190 additions and 139 deletions

View File

@@ -51,6 +51,10 @@ CardPrimitive::CardPrimitive(CardPrimitive * source)
//increasedCost.copy(source->getIncreasedManaCost());
if(source->getManaCost()->getAlternative())
manaCost.getAlternative()->alternativeName = source->getManaCost()->getAlternative()->alternativeName;
if(source->getManaCost()->getKicker())
manaCost.getKicker()->alternativeName = source->getManaCost()->getKicker()->alternativeName;
if(source->getManaCost()->getRetrace())
manaCost.getRetrace()->alternativeName = source->getManaCost()->getRetrace()->alternativeName;
text = source->text;
formattedText = source->formattedText;