fixed a bug with sunburst and sunburst cards which contained x.

This commit is contained in:
omegablast2002@yahoo.com
2011-04-02 18:30:55 +00:00
parent 0fa410cab0
commit e23ce580fe
3 changed files with 9 additions and 3 deletions

View File

@@ -1411,7 +1411,7 @@ int AIPlayerBaka::computeActions()
}
else
{
if (nextCardToPlay->sunburst < nextCardToPlay->getManaCost()->getConvertedCost())
if (nextCardToPlay->sunburst < nextCardToPlay->getManaCost()->getConvertedCost() || nextCardToPlay->getManaCost()->hasX())
{
nextCardToPlay->getManaCost()->add(i, 1);
nextCardToPlay->getManaCost()->remove(0, 1);