handle smogon sets with multiple moves (#2647)

sometimes competitive sets have multiple moves in one slot as optional coverage moves. Handle these cases by splitting and trimming over '/'.  Example: https://pastebin.com/raw/jvPziRdC (The dusk mane set)
This commit is contained in:
Archit Date 2020-01-20 14:30:09 +08:00 committed by Kurt
parent 40e5cd66da
commit 117bb35621

View file

@ -554,7 +554,7 @@ namespace PKHeX.Core
private string ParseLineMove(string line)
{
const int hiddenPower = 237;
string moveString = line.Substring(line[1] == ' ' ? 2 : 1).Trim();
string moveString = line.Substring(line[1] == ' ' ? 2 : 1).Split('/')[0].Trim();
if (!moveString.StartsWith(Strings.Move[hiddenPower])) // Hidden Power
return moveString; // regular move