Skip to content

Commit

Permalink
Deepclone specie when importing Pokemon
Browse files Browse the repository at this point in the history
Fixes #661
  • Loading branch information
thejetou committed Oct 30, 2024
1 parent 0fd323f commit 81f2e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/moveset_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function addSets(pokes, name) {
for (var j = 0; j < currentRow.length; j++) {
currentRow[j] = checkExeptions(currentRow[j].trim());
if (calc.SPECIES[9][currentRow[j].trim()] !== undefined) {
currentPoke = calc.SPECIES[9][currentRow[j].trim()];
currentPoke = JSON.parse(JSON.stringify(calc.SPECIES[9][currentRow[j].trim()]));
currentPoke.name = currentRow[j].trim();
currentPoke.item = getItem(currentRow, j + 1);
if (j === 1 && currentRow[0].trim()) {
Expand Down

0 comments on commit 81f2e78

Please sign in to comment.