From 942c1198149011f6c4077d4103a6024a28112685 Mon Sep 17 00:00:00 2001 From: whatanoob Date: Mon, 10 Jun 2024 21:33:34 +0100 Subject: [PATCH] [Bug] Fix toxic damage increment not resetting upon switching (#1844) * Update phases.ts Add reset toxic turn counter in PostSummonPhase * Update phases.ts Fix linting --- src/phases.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index e039bf43cf7..2fe782d77e7 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1162,6 +1162,9 @@ export class PostSummonPhase extends PokemonPhase { const pokemon = this.getPokemon(); + if (pokemon.status?.effect === StatusEffect.TOXIC) { + pokemon.status.turnCount = 0; + } this.scene.arena.applyTags(ArenaTrapTag, pokemon); applyPostSummonAbAttrs(PostSummonAbAttr, pokemon).then(() => this.end()); }