mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-12 22:10:26 -05:00
PK2 -> PK1 Conversion fix
This commit is contained in:
@@ -125,7 +125,7 @@ internal static PKM convertToFormat(PKM pk, int Format, out string comment)
|
||||
if (1 <= pk.Species && pk.Species <= 151)
|
||||
{
|
||||
foreach (var move in new[] { pk.Move1, pk.Move2, pk.Move3, pk.Move4})
|
||||
if (move < 1 || move > 165)
|
||||
if (move < 0 || move > 165)
|
||||
{
|
||||
comment = $"Pokemon cannot be converted due to invalid move: {Main.movelist[move]}";
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user