Fix Soul Dew not factoring in overridden nature

pull/28/head
Flashfyre 2024-04-02 23:21:55 -04:00
parent 785840fdf4
commit 6bb40c6d15
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
} }
} else { } else {
value += 5; value += 5;
const natureStatMultiplier = new Utils.NumberHolder(getNatureStatMultiplier(this.nature, s)); const natureStatMultiplier = new Utils.NumberHolder(getNatureStatMultiplier(this.getNature(), s));
this.scene.applyModifier(PokemonNatureWeightModifier, this.isPlayer(), this, natureStatMultiplier); this.scene.applyModifier(PokemonNatureWeightModifier, this.isPlayer(), this, natureStatMultiplier);
if (natureStatMultiplier.value !== 1) if (natureStatMultiplier.value !== 1)
value = Math.max(Math[natureStatMultiplier.value > 1 ? 'ceil' : 'floor'](value * natureStatMultiplier.value), 1); value = Math.max(Math[natureStatMultiplier.value > 1 ? 'ceil' : 'floor'](value * natureStatMultiplier.value), 1);