Fix for Devotion, added some "Chroma" cards

This commit is contained in:
Anthony Calosa
2014-12-05 10:18:05 +08:00
parent 8ef3789970
commit fa14219e12
9 changed files with 132 additions and 76 deletions
+21
View File
@@ -618,6 +618,27 @@ int ManaCost::getManaSymbols(int color)
return result;
}
int ManaCost::getManaSymbolsHybridMerged(int color)
{
int result = cost[color];
for (size_t i = 0; i < hybrids.size(); ++i)
{
result = hybrids[i].getManaSymbolsHybridMerged(color);//removed +
}
if (extraCosts && extraCosts->costs.size())
{
for (size_t i = 0; i < extraCosts->costs.size(); ++i)
{
LifeorManaCost * phyrexianMana = dynamic_cast<LifeorManaCost*>(extraCosts->costs[i]);
if (phyrexianMana)
{
result += phyrexianMana->getManaCost()->getManaSymbolsHybridMerged(color);
}
}
}
return result;
}
int ManaCost::parseManaSymbol(char symbol)
{
switch (symbol)