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
+3
View File
@@ -170,6 +170,9 @@ private:
} }
else if (s == "manacost") else if (s == "manacost")
{ {
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(); intValue = target->getManaCost()->getConvertedCost();
} }
else if (s == "azorius")//devotion blue white else if (s == "azorius")//devotion blue white