ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Bug Reports (https://www.esoui.com/forums/forumdisplay.php?f=187)
-   -   [open] GetUnitBuffInfo <-> GetAbilityBuffType (https://www.esoui.com/forums/showthread.php?t=8894)

Scootworks 12/26/19 04:13 AM

[open] GetUnitBuffInfo <-> GetAbilityBuffType
 
Figured out an inconsistency of two parameters. One is a string, the other a number:

- correct buffType
GetAbilityBuffType(number abilityId)
Returns: number BuffType buffType

- wrong buffType
GetUnitBuffInfo(string unitTag, number buffIndex)
Returns: string buffName, number timeStarted, number timeEnding, number buffSlot, number stackCount, textureName iconFilename, string buffType, number BuffEffectType effectType, number AbilityType abilityType, number StatusEffectType statusEffectType, number abilityId, boolean canClickOff, boolean castByPlayer

Ticket# 191226-000671

Scootworks 04/25/21 03:42 AM

@Dan, still not fixed ;-)

ZOS_DanBatson 04/26/21 02:41 PM

You'd think that'd be an easy fix, but actually it's not. GetUnitBuffInfo's buffType return is poorly named. It's not the BuffType, it's really just whether or not the buff is active, kind of. It's a debug return that's only used in debug code (which is the primary reason it's hard for me to just "fix it."). GetUnitBuffInfo does not currently have anything attempting to return the actual legit BuffType. I could potentially add a new return at the end that it the actual BuffType, if that's desirable, and rename the existing one to something else in the API.

Scootworks 05/15/21 09:24 AM

got it, thanks.a new return would be nice


All times are GMT -6. The time now is 05:41 AM.

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