mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
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:
parent
40e5cd66da
commit
117bb35621
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue