Update src/data/moves/move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Jimmybald1 2025-05-27 11:25:51 +02:00 committed by GitHub
parent 15c9d28a04
commit 7dfa3ef541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5782,7 +5782,7 @@ export class ProtectAttr extends AddBattlerTagAttr {
return ((user, target, move): boolean => {
let timesUsed = 0;
for (const turnMove of user.tempSummonData.waveMoveHistory.reverse()) {
for (const turnMove of user.tempSummonData.waveMoveHistory.slice().reverse()) {
if (
// Quick & Wide guard increment the Protect counter without using it for fail chance
!(allMoves[turnMove.move].hasAttr(ProtectAttr) ||