mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Update src/data/moves/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
15c9d28a04
commit
7dfa3ef541
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user