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;
|
||||
newtoughness = splitToughness[1];
|
||||
}
|
||||
vector<string> splitAbilities = parseBetween(abilities[j], "newability[", "]");
|
||||
if(splitAbilities.size())
|
||||
{
|
||||
newAbilityFound = true;
|
||||
newAbilitiesList.push_back(splitAbilities[1]);
|
||||
}
|
||||
if(abilities[j].find("newability[") != string::npos)
|
||||
{
|
||||
size_t NewSkill = abilities[j].find("newability[");
|
||||
size_t NewSkillEnd = abilities[j].find_last_of("]");
|
||||
string newAbilities = abilities[j].substr(NewSkill + 11,NewSkillEnd - NewSkill - 11);
|
||||
newAbilitiesList.push_back(newAbilities);
|
||||
newAbilityFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (oneShot || forceUEOT || forceFOREVER)
|
||||
|
||||
Reference in New Issue
Block a user