Skip to content

Commit 81f2e78

Browse files
committed
Deepclone specie when importing Pokemon
Fixes #661
1 parent 0fd323f commit 81f2e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/moveset_import.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function addSets(pokes, name) {
285285
for (var j = 0; j < currentRow.length; j++) {
286286
currentRow[j] = checkExeptions(currentRow[j].trim());
287287
if (calc.SPECIES[9][currentRow[j].trim()] !== undefined) {
288-
currentPoke = calc.SPECIES[9][currentRow[j].trim()];
288+
currentPoke = JSON.parse(JSON.stringify(calc.SPECIES[9][currentRow[j].trim()]));
289289
currentPoke.name = currentRow[j].trim();
290290
currentPoke.item = getItem(currentRow, j + 1);
291291
if (j === 1 && currentRow[0].trim()) {

0 commit comments

Comments
 (0)