mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 13:57:14 -05:00
Prevent duplicated egg moves
This commit is contained in:
@@ -82,7 +82,7 @@ private void setList()
|
||||
for (int i = 0; i < dgv.Rows.Count - 1; i++)
|
||||
{
|
||||
int move = Array.IndexOf(movelist, dgv.Rows[i].Cells[0].Value);
|
||||
if (move > 0) moves.Add((ushort)move);
|
||||
if (move > 0 && !moves.Contains((ushort)move)) moves.Add((ushort)move);
|
||||
}
|
||||
pkm.Moves = moves.ToArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user