From a6277f9d485b398813062b0e1dc4eb99e6e73f31 Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:41:36 +0100 Subject: [PATCH] Updated to hasPassive from getPassive --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index ecc0fd17352..7cb2c5f64eb 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2761,7 +2761,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase { this.scene.queueMessage(getPokemonMessage(pokemon, getStatusEffectActivationText(pokemon.status.effect))); let netEffect = 0; // This variable now handles both healing and damage - const isHealing = pokemon.getAbility().id === Abilities.POISON_HEAL || pokemon.getPassive().id === Abilities.POISON_HEAL; // Added check for both Ability and the new Passives + const isHealing = pokemon.getAbility().id === Abilities.POISON_HEAL || pokemon.hasPassive().id === Abilities.POISON_HEAL; // Added check for both Ability and the new Passives switch (pokemon.status.effect) { case StatusEffect.POISON: