From 070c16da8e02a06bd52c58ed86d49e21ab8bc595 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:50:11 -0600 Subject: [PATCH] Fix check for ignore_abilities move flag --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 0518b8f16f0..df692f959fe 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2734,7 +2734,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { const ally = this.getAlly(); if (ally) { - const ignore = this.hasAbilityWithAttr(MoveAbilityBypassAbAttr) || sourceMove.ignoresAbilities; + const ignore = this.hasAbilityWithAttr(MoveAbilityBypassAbAttr) || sourceMove.hasFlag(MoveFlags.IGNORE_ABILITIES); applyAllyStatMultiplierAbAttrs(AllyStatMultiplierAbAttr, ally, Stat.ACC, accuracyMultiplier, false, this, ignore); applyAllyStatMultiplierAbAttrs(AllyStatMultiplierAbAttr, ally, Stat.EVA, evasionMultiplier, false, this, ignore); }