WeakAuras

WeakAuras

200M Downloads

Issue with the GetAuraTooltipInfo() function

hkhljn opened this issue ยท 1 comments

commented

Description

Hi all, I was trying to obtain the hps information for hots using the GetAuraTooltipInfo() function but it returns nothing. The code worked fine for SL but it does not work for DF. i.e. for c, and d in the following code, the data type was 'float' but for a few spells I tested today, they both return 'nil'. When I search the code it supposes to return float based on the tooltips instead of nil. I am wondering if there's anything changed with this expansion or the function.

Please check the following code:
function()
local name = GetSpellInfo(774)
local index = nil;

for i = 1,40 do
    local buff = UnitBuff("target",i)
    if buff == name then
        index = i
        break
    end
end
if name and index then
    
    local a,b,c,d = WeakAuras.GetAuraTooltipInfo("target", index, HELPFUL)
    
    local dummy = type(d)
    
    return dummy
    
end

end

WeakAuras Version

5.3.7

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

Did not see any lua bug.

Reproduction Steps

  1. create a text aura
  2. select %c in the display test
  3. use the above custom function
  4. select aura type: buff with speel id " 774" ( rejuvenation) and own only for druid
  5. when applying rejuvenation to the target it return "nil" instead of "float"

Last Good Version

4.1.2

Screenshots

image

Export String

No response

commented

You don't need custom code to get this information, but that's a topic for discord help channels, this function is not meant to be used outside of weakauras code.