mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
fixed test
This commit is contained in:
parent
18dd5c1298
commit
a677a71e51
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user