cleanup: Remove "computeXX" functions and XX variables, these were always returning X/2 in all cases.

Test suite passes
This commit is contained in:
wagic.the.homebrew
2011-05-02 11:28:04 +00:00
parent 13dd07973e
commit 53f45a8b8e
10 changed files with 5 additions and 40 deletions
+1 -7
View File
@@ -36,12 +36,6 @@ public:
if (card) return card->X;
return 1; //this should only hapen when the ai calls the ability. This is to give it an idea of the "direction" of X (positive/negative)
}
int computeXX(Spell * spell, MTGCardInstance * card)
{
if (spell) return spell->computeXX(card);
if (card) return card->XX;
return 1; //this should only hapen when the ai calls the ability. This is to give it an idea of the "direction" of X (positive/negative)
}
WParsedInt(int value = 0)
{
intValue = value;
@@ -82,7 +76,7 @@ public:
}
else if (s == "xx" || s == "XX")
{
intValue = computeXX(spell, card);
intValue = computeX(spell, card) / 2;
if(intValue < 0)
intValue = 0;
}