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

Improvements to health regen. #100

Open
wants to merge 2 commits into
base: epoch-core
Choose a base branch
from

Conversation

zana244
Copy link

@zana244 zana244 commented Mar 2, 2025

Allow hp regen calculations to use a carry; mainly helps for hp5 potions --> a 6hp5 potion would only give 2 hp every 2 seconds, effectively being nerfed.
Based on vmangos/core@1a9b78f

Fix the permanent sound/emote looping while eating and drinking

Small nitpick: We are calling RegenerateAll() whenever m_regenTimer exceeds 2000 ms, but we are not calling it with 2000 ms but with the actual m_regenTimer which has small overflow, so each tick calculation is not for a true 2000 ms tick. If the diff is small it wouldn't matter but it's just a nitpick in how the code is written

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.

1 participant