Issue with the GetAuraTooltipInfo() function
hkhljn opened this issue ยท 1 comments
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
- create a text aura
- select %c in the display test
- use the above custom function
- select aura type: buff with speel id " 774" ( rejuvenation) and own only for druid
- when applying rejuvenation to the target it return "nil" instead of "float"
Last Good Version
4.1.2
Screenshots
Export String
No response