Ensure updatePokemonHp does not skip last hp number

This commit is contained in:
Sirz Benjie 2025-05-05 13:09:07 -05:00
parent 43353e27f3
commit 54162151fa
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -727,6 +727,10 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
},
onComplete: () => {
updateHpFrame();
if (this.player && this.lastHp !== pokemon.hp) {
this.setHpNumbers(pokemon.hp, pokemon.getMaxHp());
this.lastHp = pokemon.hp;
}
resolve();
},
});