Skip to content

Commit fd46b5c

Browse files
committed
Update unpack format
Updated on the server-side so doing the same here for consistency.
1 parent f9ad0e9 commit fd46b5c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

play.pokemonshowdown.com/js/storage.js

+8
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,10 @@ Storage.fastUnpackTeam = function (buf) {
941941
if (!set.movePPUps[index]) set.movePPUps[index] = 3;
942942
}
943943
i = j + 1;
944+
} else {
945+
for (var index = 0; index < set.moves.length; index++) {
946+
set.movePPUps[index] = 3;
947+
}
944948
}
945949

946950
// nature
@@ -1076,6 +1080,10 @@ Storage.unpackTeam = function (buf) {
10761080
if (isNaN(set.movePPUps[index])) set.movePPUps[index] = 3;
10771081
}
10781082
i = j + 1;
1083+
} else {
1084+
for (var index = 0; index < set.moves.length; index++) {
1085+
set.movePPUps[index] = 3;
1086+
}
10791087
}
10801088

10811089
// nature

0 commit comments

Comments
 (0)