Hi All!
I hope someone can help… I don’t know much about coding and I can barely adapt someone else code to my needs.
As far as I know UnitAura has been replaced by C_UnitAuras_GetAuraDataByIndex but when trying to use it, I’m receiving an error:
attempt to call global ‘C_UnitAuras_GetAuraDataByIndex’ (a nil value)
Old line:
local ad = select(10, UnitAura(“player”,i))
New one:
local ad = C_UnitAuras_GetAuraDataByIndex(“player”,i, “HELPFUL”)
New one 2:
local ad = C_UnitAuras_GetAuraDataByIndex(“player”,1, “HELPFUL”).spellId
Any idea what I’m doing wrong?
thanks!