From d65652a34e6fc8ff0c52ed816334f8b3bf25b3e0 Mon Sep 17 00:00:00 2001 From: Archit Date Date: Thu, 5 Apr 2018 09:30:54 +0800 Subject: [PATCH] Fix Showdown Imports for Nidoran (#1886) Showdown Set isn't recognized because of the format `Nidoran-G (G)` where G is M/F --- PKHeX.Core/PKM/ShowdownSet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/PKM/ShowdownSet.cs b/PKHeX.Core/PKM/ShowdownSet.cs index 169c7960f..917c97c3d 100644 --- a/PKHeX.Core/PKM/ShowdownSet.cs +++ b/PKHeX.Core/PKM/ShowdownSet.cs @@ -281,10 +281,10 @@ private bool ParseSpeciesForm(string spec) return true; // failure to parse, check edge cases - var edge = new[] {784, 250}; // all species with dashes in English Name (Kommo-o & Ho-Oh) + var edge = new[] {784, 250, 032, 029}; // all species with dashes in English Name (Kommo-o, Ho-Oh, Nidoran-M, Nidoran-F) foreach (var e in edge) { - if (!spec.StartsWith(species[e])) + if (!spec.StartsWith(species[e].Replace("♂", "-M").Replace("♀", "-F"))) continue; Species = e; Form = spec.Substring(species[e].Length);