Damage-related fixes and changes

Apply damage numbers to all damage and heal; fix some damage-related bugs
This commit is contained in:
Flashfyre committed 2024-03-01 09:35:36 -05:00
1 parent 716d8853a3
commit 1f6a6f4621
7 files changed
+103 -65

No files matched your search

+2 -2
View File
@@ -905,8 +905,8 @@ export class PostWeatherLapseDamageAbAttr extends PostWeatherLapseAbAttr {
if (pokemon.getHpRatio() < 1) {
const scene = pokemon.scene;
scene.queueMessage(getPokemonMessage(pokemon, ` is hurt\nby its ${pokemon.getAbility()}!`));
scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.getBattlerIndex(), HitResult.OTHER));
pokemon.damage(Math.ceil(pokemon.getMaxHp() / (16 / this.damageFactor)));
const damage = pokemon.damage(Math.ceil(pokemon.getMaxHp() / (16 / this.damageFactor)));
scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.getBattlerIndex(), damage, HitResult.OTHER));
return true;
}