Fix burn damage change affecting poison
This commit is contained in:
parent
c8ac42f267
commit
f79337b475
|
@ -2635,12 +2635,14 @@ export class PostTurnStatusEffectPhase extends PokemonPhase {
|
|||
let damage: integer = 0;
|
||||
switch (pokemon.status.effect) {
|
||||
case StatusEffect.POISON:
|
||||
case StatusEffect.BURN:
|
||||
damage = Math.max(pokemon.getMaxHp() >> 4, 1);
|
||||
damage = Math.max(pokemon.getMaxHp() >> 3, 1);
|
||||
break;
|
||||
case StatusEffect.TOXIC:
|
||||
damage = Math.max(Math.floor((pokemon.getMaxHp() / 16) * pokemon.status.turnCount), 1);
|
||||
break;
|
||||
case StatusEffect.BURN:
|
||||
damage = Math.max(pokemon.getMaxHp() >> 4, 1);
|
||||
break;
|
||||
}
|
||||
if (damage) {
|
||||
this.scene.damageNumberHandler.add(this.getPokemon(), pokemon.damage(damage));
|
||||
|
|
Loading…
Reference in New Issue