From 085dd15651d2b370eee580bcbd3c5ef1c912019c Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 23 Feb 2024 09:24:49 -0500 Subject: [PATCH] Fix broken type immunity ability --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index c020dc97e54..e9668914624 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -191,7 +191,7 @@ export class TypeImmunityAbAttr extends PreDefendAbAttr { } applyPreDefend(pokemon: Pokemon, attacker: Pokemon, move: PokemonMove, cancelled: Utils.BooleanHolder, args: any[]): boolean { - if ((move instanceof AttackMove || move.getMove().getAttrs(StatusEffectAttr).length) && move.getMove().type === this.immuneType) { + if ((move.getMove() instanceof AttackMove || move.getMove().getAttrs(StatusEffectAttr).length) && move.getMove().type === this.immuneType) { (args[0] as Utils.NumberHolder).value = 0; return true; }