bug fix for something reported in the forums, becomes( and transforms( were not correctly giving creatures abilities...this is just because of a small overlooked issue, the string would read "flying)" instead of "flying" and was there for rejected by mikes new abilities hash. same with transforms( it would read ",flying" and reject it...just had to correct the "ends" and "begins" of those strings...mike you told me you tested this change when we got into it...shame on you!
This commit is contained in:
@@ -1665,7 +1665,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
}
|
||||
if (pt && end != real_end)
|
||||
{
|
||||
sabilities = s.substr(end + 1, real_end - end);
|
||||
sabilities = s.substr(end + 1, real_end - end - 1);
|
||||
}
|
||||
MTGAbility * ab;
|
||||
if (forceUEOT)
|
||||
@@ -1721,7 +1721,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
vector<string> effectParameters = split( transformsParamsString, ',');
|
||||
string stypes = effectParameters[0];
|
||||
|
||||
string sabilities = transformsParamsString.substr(stypes.length());
|
||||
string sabilities = transformsParamsString.substr(stypes.length() + 1);
|
||||
|
||||
MTGAbility * a;
|
||||
if (forceFOREVER)
|
||||
|
||||
Reference in New Issue
Block a user