From bfe4f3222df86df303b37113bb98273fa961030d Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 27 Jan 2018 20:18:38 -0800 Subject: [PATCH] Don't update HP IVs if IVs already provided Closes #1786 --- PKHeX.Core/PKM/ShowdownSet.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/ShowdownSet.cs b/PKHeX.Core/PKM/ShowdownSet.cs index 57ba116a3..fc83f03b0 100644 --- a/PKHeX.Core/PKM/ShowdownSet.cs +++ b/PKHeX.Core/PKM/ShowdownSet.cs @@ -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}");