mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 14:02:18 +02:00
[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();
|
const pokemon = this.getPokemon();
|
||||||
|
|
||||||
|
if (pokemon.status?.effect === StatusEffect.TOXIC) {
|
||||||
|
pokemon.status.turnCount = 0;
|
||||||
|
}
|
||||||
this.scene.arena.applyTags(ArenaTrapTag, pokemon);
|
this.scene.arena.applyTags(ArenaTrapTag, pokemon);
|
||||||
applyPostSummonAbAttrs(PostSummonAbAttr, pokemon).then(() => this.end());
|
applyPostSummonAbAttrs(PostSummonAbAttr, pokemon).then(() => this.end());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user