Skip to content

Commit

Permalink
Fix hidden power string detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Apr 2, 2015
1 parent 9928bc1 commit 8f2bc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Misc/PKX.cs
Expand Up @@ -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
}
Expand Down

0 comments on commit 8f2bc04

Please sign in to comment.