Files
wow-weakauras/WA snippets/UnitDebuffC.lua
2025-05-15 20:37:50 +02:00

21 lines
424 B
Lua

aura_env.UnitDebuffC = function(unit, spell)
for i = 1, 40 do
local name = UnitDebuff(unit, i)
if name then
if name == spell then return UnitDebuff(unit, i) end
else
return nil
end
end
end
aura_env.UnitBuffC = function(unit, spell)
for i = 1, 40 do
local name = UnitBuff(unit, i)
if name then
if name == spell then return UnitBuff(unit, i) end
else
return nil
end
end
end