From 8f2bc04a8294bc8a5773605fafa6ab6161ef6f27 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 1 Apr 2015 17:20:09 -0700 Subject: [PATCH] Fix hidden power string detection --- Misc/PKX.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/PKX.cs b/Misc/PKX.cs index 12036963d..d83260463 100644 --- a/Misc/PKX.cs +++ b/Misc/PKX.cs @@ -1625,9 +1625,9 @@ public Set(string input, string[] species, string[] items, string[] natures, str string moveString = line.Substring(2); if (moveString.Contains("Hidden Power")) { - if (moveString.Length > 11) // Defined Hidden Power + if (moveString.Length > 13) // Defined Hidden Power { - string type = moveString.Remove(0, 12).Replace("[", "").Replace("]", ""); // Trim out excess data + string type = moveString.Remove(0, 13).Replace("[", "").Replace("]", ""); // Trim out excess data int hpVal = Array.IndexOf(hptypes, type); // Get HP Type if (hpVal >= 0) IVs = setHPIVs(hpVal, IVs); // Get IVs }