View Single Post
04/18/22, 11:43 PM   #3
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by Baertram View Post
Did you try if this happens without addons eabled at the vanilla UI too?
If it's not happening: It's an addon related bug and you should investigate which addon causes this maybe wrong calculation please.
After more investigation:

Yes that's also there without any addon :
Bastian's health bar is not full just after porting to a different "major" zone e. g. from Vvardenfell to Grahtwood,
but inside the same "major" zone e. g. Summerset to anywhere in Summerset the healthbar is full.

In my addon I use :

Lua Code:
  1. local currentHealth, maxHealth, effectiveMaxHealth = GetUnitPower(unitTag, POWERTYPE_HEALTH)
  2. local healthPercent = math.floor(currentHealth/maxHealth*100)

and it indicates 92% each time.

Again, it never happens with Mirri.

Last edited by Masteroshi430 : 04/18/22 at 11:50 PM.
  Reply With Quote