mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Update ability.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
7f3a5cfe38
commit
89269cfa29
@ -4074,7 +4074,7 @@ export class PostTurnRestoreBerryAbAttr extends PostTurnAbAttr {
|
|||||||
|
|
||||||
// Clamp procChance to [0, 1]. Skip if didn't proc (less than pass)
|
// Clamp procChance to [0, 1]. Skip if didn't proc (less than pass)
|
||||||
const pass = randSeedFloat();
|
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 {
|
override applyPostTurn(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user