fixed issue 632,633 ...
converted {t} into a extra cost. almost all original code to handle it outside remains intact, i plan on slowly migrating to just using the cost...but even just what i changed was a massive headache...anyways as a cost you wont ever have an random bugs where cards don't tap when the ability had {t} in its cost.
while i was at it, i added {q} untap cost.
This commit is contained in:
@@ -93,7 +93,7 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
case 't': //Tap
|
||||
if (value == "t")
|
||||
{
|
||||
//default Tap is handled outside of Manacost
|
||||
manaCost->addExtraCost(NEW TapCost);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -153,6 +153,11 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
manaCost->addExtraCost(NEW LifeorManaCost(NULL,manaType));
|
||||
break;
|
||||
}
|
||||
case 'q':
|
||||
{
|
||||
manaCost->addExtraCost(NEW UnTapCost);
|
||||
break;
|
||||
}
|
||||
case 'c': //Counters
|
||||
{
|
||||
size_t counter_start = value.find("(");
|
||||
|
||||
Reference in New Issue
Block a user