mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Update ShowdownSet.cs
This commit is contained in:
parent
2655892db1
commit
04ea271b8b
1 changed files with 5 additions and 5 deletions
|
@ -489,9 +489,9 @@ namespace PKHeX.Core
|
|||
string species, nickname;
|
||||
if (index > 1) // parenthesis value after: Nickname (Species), correct.
|
||||
{
|
||||
species = line[..index].Trim();
|
||||
nickname = line[index..].Trim();
|
||||
nickname = RemoveAll(nickname, ParenJunk); // Trim out excess data
|
||||
nickname = line[..index].Trim();
|
||||
species = line[index..].Trim();
|
||||
species = RemoveAll(species, ParenJunk); // Trim out excess data
|
||||
}
|
||||
else // parenthesis value before: (Species) Nickname, incorrect
|
||||
{
|
||||
|
@ -500,8 +500,8 @@ namespace PKHeX.Core
|
|||
var tmp = line[start..end];
|
||||
if (end < line.Length - 2)
|
||||
{
|
||||
species = line[(end + 2)..];
|
||||
nickname = tmp;
|
||||
nickname = line[(end + 2)..];
|
||||
species = tmp;
|
||||
}
|
||||
else // (Species), or garbage
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue