Skip to content

Commit

Permalink
refactor: use local private healthIndicatorGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Jul 27, 2023
1 parent c59966c commit 64854ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@ class CreatureSprite {
const durationMS = 350;

if (!this._healthIndicatorTween || !this._healthIndicatorTween.isRunning) {
const originalY = this.healthIndicatorGroup.y;
const originalY = this._healthIndicatorGroup.y;
const targetY = originalY - bounceHeight;

this._healthIndicatorTween = this._phaser.add
Expand Down

0 comments on commit 64854ac

Please sign in to comment.