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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user