fixed a bug intruduced by a refactor to the parsing of transforms ability with caused "newability" to be split incorrectly...im sure it was a mistake, or maybe rushed? at the point this code is "parsing between" the abilities have already been split up...all we do here is erase the "newability[" and last of "]" from the string....
This commit is contained in:
@@ -2036,12 +2036,14 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
newtoughnessfound = true;
|
newtoughnessfound = true;
|
||||||
newtoughness = splitToughness[1];
|
newtoughness = splitToughness[1];
|
||||||
}
|
}
|
||||||
vector<string> splitAbilities = parseBetween(abilities[j], "newability[", "]");
|
if(abilities[j].find("newability[") != string::npos)
|
||||||
if(splitAbilities.size())
|
{
|
||||||
{
|
size_t NewSkill = abilities[j].find("newability[");
|
||||||
newAbilityFound = true;
|
size_t NewSkillEnd = abilities[j].find_last_of("]");
|
||||||
newAbilitiesList.push_back(splitAbilities[1]);
|
string newAbilities = abilities[j].substr(NewSkill + 11,NewSkillEnd - NewSkill - 11);
|
||||||
}
|
newAbilitiesList.push_back(newAbilities);
|
||||||
|
newAbilityFound = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oneShot || forceUEOT || forceFOREVER)
|
if (oneShot || forceUEOT || forceFOREVER)
|
||||||
|
|||||||
Reference in New Issue
Block a user