fixed test

This commit is contained in:
muscode13 2024-10-21 19:26:49 -06:00
parent 18dd5c1298
commit a677a71e51
2 changed files with 10 additions and 10 deletions

View File

@ -3213,15 +3213,15 @@ function calculateTurnEndDamage(pokemon: Pokemon): number {
if (pokemon.status?.isPostTurn()) { if (pokemon.status?.isPostTurn()) {
switch (pokemon.status.effect) { switch (pokemon.status.effect) {
case StatusEffect.POISON: case StatusEffect.POISON:
damageTaken += Math.max(maxHp >> 3, 1); // Poison damage damageTaken += Math.max(maxHp >> 3, 1); // Poison damage
break; break;
case StatusEffect.TOXIC: case StatusEffect.TOXIC:
damageTaken += Math.max(Math.floor((maxHp / 16) * pokemon.status.turnCount), 1); // Toxic damage damageTaken += Math.max(Math.floor((maxHp / 16) * pokemon.status.turnCount), 1); // Toxic damage
break; break;
case StatusEffect.BURN: case StatusEffect.BURN:
damageTaken += Math.max(maxHp >> 4, 1); // Burn damage damageTaken += Math.max(maxHp >> 4, 1); // Burn damage
break; break;
} }
} }

View File

@ -67,7 +67,7 @@ describe("Abilities - Wimp Out", () => {
// arrange // arrange
game.override game.override
.enemyMoveset(Moves.SLUDGE_BOMB) .enemyMoveset(Moves.SLUDGE_BOMB)
.startingLevel(90); .startingLevel(95);
await game.startBattle([ await game.startBattle([
Species.WIMPOD, Species.WIMPOD,
Species.TYRUNT Species.TYRUNT