added a check for uppercase x in manacost, when i added specific cost comparing value == "x" instead of 'x' fudged up some of the x cards which had x in caps. thanks for catching kevlahnota!

This commit is contained in:
omegablast2002@yahoo.com
2012-05-05 15:23:28 +00:00
parent 7b140987cf
commit 0503be97ba

View File

@@ -91,8 +91,9 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
//switch on the first letter. If two costs share their first letter, add an "if" within the switch
switch (value[0])
{
case 'X':
case 'x':
if(value == "x")
if(value == "x" || value == "X")
manaCost->x();
else
{