pull/526/merge
Xavion3 2024-05-14 22:46:07 -07:00 committed by GitHub
commit 4d80d23b1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -2324,9 +2324,12 @@ export class DoubleBerryEffectAbAttr extends AbAttr {
export class PreventBerryUseAbAttr extends AbAttr {
apply(pokemon: Pokemon, passive: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean {
cancelled.value = true;
return true;
if (!Utils.randSeedInt(2)) {
cancelled.value = true;
return true;
}
return false;
}
}