From ff7860413a05e7e2c292b34a4768e1872274ec59 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Thu, 1 May 2025 14:20:03 -0500 Subject: [PATCH] [Bug][Ability] Fix shell armor not blocking crits (#5737) Fix shell armor not blocking crits --- src/data/abilities/ability.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 9a6094f4649..80b05b89d16 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -3408,8 +3408,12 @@ export class BlockCritAbAttr extends AbAttr { super(false); } - override apply(pokemon: Pokemon, passive: boolean, simulated: boolean, cancelled: BooleanHolder, args: any[]): void { - (args[0] as BooleanHolder).value = true; + /** + * Apply the block crit ability by setting the value in the provided boolean holder to false + * @param args - [0] is a boolean holder representing whether the attack can crit + */ + override apply(_pokemon: Pokemon, _passive: boolean, _simulated: boolean, _cancelled: BooleanHolder, args: [BooleanHolder, ...any]): void { + (args[0]).value = false; } }