mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Update battle-info inside pokemon#damageAndUpdate
This commit is contained in:
parent
7547b37e85
commit
43353e27f3
@ -4764,6 +4764,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
isIndirectDamage,
|
||||
ignoreFaintPhase,
|
||||
);
|
||||
// Ensure the battle-info bar's HP is updated, though only if the battle info is visible
|
||||
// TODO: When battle-info UI is refactored, make this only update the HP bar
|
||||
if (this.battleInfo.visible) {
|
||||
this.updateInfo();
|
||||
}
|
||||
// Damage amount may have changed, but needed to be queued before calling damage function
|
||||
damagePhase.updateAmount(damage);
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user