From a9a2d893f59722dce88b0be3f9bff1eb4391c016 Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:47:38 +0100 Subject: [PATCH] Updated syntax --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index e080fc90a80..c40dfd40f9a 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2919,7 +2919,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.hasAbility(Abilities.POISON_HEAL); // Added check for both Ability and the new Passives + const isHealing = pokemon.hasAbility.id === Abilities.POISON_HEAL; // Added check for both Ability and the new Passives switch (pokemon.status.effect) { case StatusEffect.POISON: