mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 00:12:16 +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,
|
isIndirectDamage,
|
||||||
ignoreFaintPhase,
|
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
|
// Damage amount may have changed, but needed to be queued before calling damage function
|
||||||
damagePhase.updateAmount(damage);
|
damagePhase.updateAmount(damage);
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user