Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] Client not updating HP bar when an HP Buff with a Heal is applied. #4237

Merged
merged 2 commits into from Apr 2, 2024

Conversation

KayenEQ
Copy link
Contributor

@KayenEQ KayenEQ commented Apr 1, 2024

Came across this bug while trying to fix another bug...

Bug: When an HP buff with a heal effect is applied for first time (example Virtue), the heal portion of the effect heals the client and updates HPs correctly server side, but client side the HP bar does not register it as a heal thus you display as less than full HP. However, due to server thinking your healed, you are unable to correct it by healing yourself.

Solution: We need to resend the HP update again after buff completed and action packet resent.

This is currently coded to apply to spell effects SPA 69 (Total HP) and SPA 214 (Max HP Change) that have instant healing components SPA 0 or SPA 79. Possible that this may need to be expanded on in the future.

Bug: When an HP buff with a heal effect is applied for first time, the heal portion of the effect heals the client and updates HPs currently server side, but client side the HP bar does not register it as a heal thus you display as less than full HP. However due to server thinking your healed, you are unable to correct it by healing.

Solution: You need to resend the HP update after buff completed and action packet resent.
would result in same bug
@Kinglykrab
Copy link
Contributor

This seems to be in #4238 as well.

Copy link
Member

@Akkadius Akkadius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the PR template next time please

@Akkadius Akkadius merged commit 043eece into master Apr 2, 2024
2 checks passed
@Akkadius Akkadius deleted the kayen_bugfix_HPBuff_clientupdate branch April 2, 2024 06:13
MortimerGreenwald pushed a commit to MortimerGreenwald/Server that referenced this pull request Apr 15, 2024
…pplied. (EQEmu#4237)

* [Bug Fix] HP Bar not updating when applying HP Buff with a heal.

Bug: When an HP buff with a heal effect is applied for first time, the heal portion of the effect heals the client and updates HPs currently server side, but client side the HP bar does not register it as a heal thus you display as less than full HP. However due to server thinking your healed, you are unable to correct it by healing.

Solution: You need to resend the HP update after buff completed and action packet resent.

* add SE_MaxHPChange to fix

would result in same bug
@Akkadius Akkadius mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants