ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Bug Reports (https://www.esoui.com/forums/forumdisplay.php?f=187)
-   -   [heads-up] Bastian's Health after porting (https://www.esoui.com/forums/showthread.php?t=10144)

Masteroshi430 04/18/22 06:43 AM

[heads-up] Bastian's Health after porting
 
Not really an UI or API bug but I display health % with and addon and Bastian's health always drops to 90-92% just after porting. That never happens with Mirri.

Baertram 04/18/22 11:28 AM

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.

Masteroshi430 04/18/22 11:43 PM

Quote:

Originally Posted by Baertram (Post 45721)
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.


All times are GMT -6. The time now is 04:55 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI