ok this is the last commit but i had massive issues after chopping it all up, hopefully it doesn't hilight everything that was already commited...if it does i apologize my own patch started giving me conflicts....
im like 7 tries into commiting this part....
This commit is contained in:
@@ -165,7 +165,11 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
|
||||
}
|
||||
case 'c': //Counters or cycle
|
||||
{
|
||||
if(value == "cycle")
|
||||
if(value == "chosencolor")
|
||||
{
|
||||
manaCost->add(c->chooseacolor, 1);
|
||||
}
|
||||
else if(value == "cycle")
|
||||
{
|
||||
manaCost->addExtraCost(NEW CycleCost(tc));
|
||||
}
|
||||
@@ -631,6 +635,11 @@ int ManaCost::addExtraCost(ExtraCost * _cost)
|
||||
|
||||
int ManaCost::addExtraCosts(ExtraCosts *_ecost)
|
||||
{
|
||||
if(!_ecost)
|
||||
{
|
||||
extraCosts = NULL;
|
||||
return 1;
|
||||
}
|
||||
if (!extraCosts)
|
||||
extraCosts = NEW ExtraCosts();
|
||||
for(size_t i = 0; i < _ecost->costs.size(); i++)
|
||||
|
||||
Reference in New Issue
Block a user