Make unnerve less effective

pull/526/head
Xavion3 2024-05-06 11:34:31 +10:00
parent 700b79e0c3
commit 0ceef3d8f4
1 changed files with 6 additions and 3 deletions

View File

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