[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
This commit is contained in:
parent
a97933fe4c
commit
942c119814
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue