From 59792b3456f4836f222954d467a078f449a54dcb Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 12 Sep 2015 19:58:09 +0800 Subject: [PATCH] X in manacost is always 0 except on the stack --- projects/mtg/include/AllAbilities.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 6bf905528..4c9d88e33 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -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 {