From 0ee76e30193b7891e73554fa65ea65f8bcba24c5 Mon Sep 17 00:00:00 2001 From: contra1337 Date: Mon, 6 May 2024 15:19:08 -0500 Subject: [PATCH] update apply for ignoretypeimmunityabattr --- src/data/ability.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index f44908467b4..377c0971d97 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2483,11 +2483,11 @@ export class IgnoreTypeImmunityAbAttr extends AbAttr { } apply(pokemon: Pokemon, passive: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean { - if (this.defenderType === (args[1] as Type)) { - cancelled.value = this.allowedMoveTypes.some(type => type === (args[0] as Type)); + if (this.defenderType === (args[1] as Type) && this.allowedMoveTypes.some(type => type === (args[0] as Type))) { + cancelled.value = true; + return true; } - - return cancelled.value; + return false; } }