From ac12f95d1082982cf7612c643eb29e647b507113 Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Mon, 6 May 2024 22:14:52 +0100 Subject: [PATCH] Updated comments --- src/phases.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 4b861457b7c..0c536390c43 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2925,7 +2925,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase { switch (pokemon.status.effect) { case StatusEffect.POISON: case StatusEffect.TOXIC: - if (pokemon.hasAbility(Abilities.POISON_HEAL)) { // Directly check here + if (pokemon.hasAbility(Abilities.POISON_HEAL)) { // Directly check for both ability and passives, hasAbility covers them both netEffect = Math.max(pokemon.getMaxHp() >> 3, 1); // Healing logic this.scene.damageNumberHandler.add(pokemon, pokemon.heal(netEffect), HitResult.HEAL); // Apply healing } else { @@ -2941,7 +2941,7 @@ export class PostTurnStatusEffectPhase extends PokemonPhase { break; } - if (netEffect > 0) { // Just a check for poison to play the bubbly animation, damage moved to above + if (netEffect > 0) { // If poison-based damage was taken, play the corresponding animation const animType = CommonAnim.POISON + (pokemon.status.effect - 1); new CommonBattleAnim(animType, pokemon).play(this.scene, () => this.end()); pokemon.updateInfo();