Don't update HP IVs if IVs already provided

Closes #1786
This commit is contained in:
Kurt
2018-01-27 20:18:38 -08:00
parent 3935311988
commit bfe4f3222d

View File

@@ -334,7 +334,10 @@ private string ParseLineMove(string line)
string type = moveString.Remove(0, 13);
type = ReplaceAll(type, string.Empty, "[", "]", "(", ")"); // Trim out excess data
int hpVal = Array.IndexOf(hptypes, type); // Get HP Type
if (hpVal >= 0)
if (IVs.Any(z => z != 31))
{ } // don't modify IVs
else if (hpVal >= 0)
IVs = PKX.SetHPIVs(hpVal, IVs); // Get IVs
else
InvalidLines.Add($"Invalid Hidden Power Type: {type}");