X in manacost is always 0 except on the stack

This commit is contained in:
Anthony Calosa
2015-09-12 19:58:09 +08:00
parent fb9b0b8166
commit 59792b3456

View File

@@ -170,7 +170,10 @@ private:
}
else if (s == "manacost")
{
intValue = target->getManaCost()->getConvertedCost();
if (target->currentZone == target->controller()->game->stack)//X is 0 except if it's on the stack
intValue = target->getManaCost()->getConvertedCost() + target->castX;
else
intValue = target->getManaCost()->getConvertedCost();
}
else if (s == "azorius")//devotion blue white
{