mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 23:25:46 -05:00
Fix Showdown Imports for Nidoran (#1886)
Showdown Set isn't recognized because of the format `Nidoran-G (G)` where G is M/F
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user