From 99a26e366b304cb618a5c7ce4a23df7a2dee3921 Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:37:09 +0100 Subject: [PATCH] Updated check logic, should account for both ability and passive --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 7cb2c5f64eb..6a65bfed285 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.hasPassive().id === Abilities.POISON_HEAL; // Added check for both Ability and the new Passives + const isHealing = pokemon.hasAbility(Abilities.POISON_HEAL); // Added check for both Ability and the new Passives switch (pokemon.status.effect) { case StatusEffect.POISON: