From 0ceef3d8f4e282d605edffbf0f7fa71d260b7080 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Mon, 6 May 2024 11:34:31 +1000 Subject: [PATCH] Make unnerve less effective --- src/data/ability.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index eec1240e1..6cf5effe6 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2171,9 +2171,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; } }