Files
wow-weakauras/WeakAuras/Snippets/Find Aura ID.lua

11 lines
173 B
Lua

aura_env.auraID = function(spell)
for i = 1, 40 do
local name = UnitBuff("player", i)
if name then
if name == spell then return i end
else
break
end
end
end