Skip to content

Commit 3342c89

Browse files
committed
fix client for moveslot protocol
1 parent c4e2bac commit 3342c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/battle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class Battle {
185185
const mpoke = poke.volatiles.transform?.pokemon || poke;
186186
mpoke.moveSlots = [];
187187
for (const move of active.moves) {
188-
if (move.id === 'struggle') continue;
188+
if (move.id === 'struggle' || !('pp' in move)) continue;
189189
mpoke.moveSlots.push({ppUsed: move.maxpp - move.pp, ...move});
190190
}
191191
poke.maxMoves = active.maxMoves;

0 commit comments

Comments
 (0)