Update ability.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-04-30 07:55:27 -04:00 committed by GitHub
parent 7f3a5cfe38
commit 89269cfa29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4074,7 +4074,7 @@ export class PostTurnRestoreBerryAbAttr extends PostTurnAbAttr {
// Clamp procChance to [0, 1]. Skip if didn't proc (less than pass)
const pass = randSeedFloat();
return Phaser.Math.Clamp(this.procChance(pokemon), 1, 0) >= pass;
return Phaser.Math.Clamp(this.procChance(pokemon), 0, 1) >= pass;
}
override applyPostTurn(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): void {