diff --git a/src/data/ability.ts b/src/data/ability.ts index 1716cc62c0d..01b36310098 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -3213,15 +3213,15 @@ function calculateTurnEndDamage(pokemon: Pokemon): number { if (pokemon.status?.isPostTurn()) { switch (pokemon.status.effect) { - case StatusEffect.POISON: - damageTaken += Math.max(maxHp >> 3, 1); // Poison damage - break; - case StatusEffect.TOXIC: - damageTaken += Math.max(Math.floor((maxHp / 16) * pokemon.status.turnCount), 1); // Toxic damage - break; - case StatusEffect.BURN: - damageTaken += Math.max(maxHp >> 4, 1); // Burn damage - break; + case StatusEffect.POISON: + damageTaken += Math.max(maxHp >> 3, 1); // Poison damage + break; + case StatusEffect.TOXIC: + damageTaken += Math.max(Math.floor((maxHp / 16) * pokemon.status.turnCount), 1); // Toxic damage + break; + case StatusEffect.BURN: + damageTaken += Math.max(maxHp >> 4, 1); // Burn damage + break; } } diff --git a/src/test/abilities/wimp_out.test.ts b/src/test/abilities/wimp_out.test.ts index d49a313032a..470fb7d53a8 100644 --- a/src/test/abilities/wimp_out.test.ts +++ b/src/test/abilities/wimp_out.test.ts @@ -67,7 +67,7 @@ describe("Abilities - Wimp Out", () => { // arrange game.override .enemyMoveset(Moves.SLUDGE_BOMB) - .startingLevel(90); + .startingLevel(95); await game.startBattle([ Species.WIMPOD, Species.TYRUNT