From 7911f0f1cdafd7770e989131f82587b63127dba8 Mon Sep 17 00:00:00 2001 From: PrabbyDD Date: Mon, 14 Oct 2024 15:05:51 -0700 Subject: [PATCH] fixing targets --- src/phases/move-effect-phase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases/move-effect-phase.ts b/src/phases/move-effect-phase.ts index 83fd3434c51..e9bff882367 100644 --- a/src/phases/move-effect-phase.ts +++ b/src/phases/move-effect-phase.ts @@ -151,7 +151,7 @@ export class MoveEffectPhase extends PokemonPhase { /** Is the pokemon immune due to an ablility, and also not in a semi invulnerable state? */ const isImmune = target.hasAbilityWithAttr(TypeImmunityAbAttr) && (target.getAbility()?.getAttrs(TypeImmunityAbAttr)?.[0]?.getImmuneType() === user.getMoveType(move)) - && !targets[0].getTag(SemiInvulnerableTag); + && !target.getTag(SemiInvulnerableTag); /** * If the move missed a target, stop all future hits against that target