From 42d73c4ef2951ab020b96bd8e183d4ee3ce365a3 Mon Sep 17 00:00:00 2001 From: PrabbyDD <147005742+PrabbyDD@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:22:56 -0700 Subject: [PATCH] Update src/field/pokemon.ts Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com> --- 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 a74eb7f9d20..6425336a284 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2673,7 +2673,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { applyPreDefendAbAttrs(ReceivedMoveDamageMultiplierAbAttr, this, source, move, cancelled, simulated, damage); /** Additionally apply friend guard damage reduction if ally has it. */ - if (this.scene.currentBattle.double && this.getAlly().isActive()) { + if (this.scene.currentBattle.double && this.getAlly()?.isActive(true)) { applyPreDefendAbAttrs(FriendGuardAbAttr, this.getAlly(), source, move, cancelled, simulated, damage); } }