mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-24 19:02:46 -05:00
@@ -463,9 +463,7 @@ private static string ConvertFormToShowdown(string form, int spec)
|
||||
}
|
||||
private static string ConvertFormFromShowdown(string form, int spec, int ability)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(form))
|
||||
return null;
|
||||
form = form.Replace(" ", "-"); // inconsistencies are great
|
||||
form = form?.Replace(" ", "-"); // inconsistencies are great
|
||||
switch (spec)
|
||||
{
|
||||
case 550 when form == "Blue-Striped": // Basculin
|
||||
@@ -499,7 +497,7 @@ private static string ConvertFormFromShowdown(string form, int spec, int ability
|
||||
return "Dawn";
|
||||
|
||||
default:
|
||||
if (Legal.Totem_USUM.Contains(spec) && form.EndsWith("Totem"))
|
||||
if (Legal.Totem_USUM.Contains(spec) && form != null && form.EndsWith("Totem"))
|
||||
return "Large";
|
||||
return form;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user