Add new code snippets
This commit is contained in:
12
WA snippets/UnitBuff.lua
Normal file
12
WA snippets/UnitBuff.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
aura_env.CUnitBuff = function(spell)
|
||||
for i = 1, 40 do
|
||||
local name = UnitBuff("player", i)
|
||||
if name then
|
||||
if name == spell then
|
||||
return UnitBuff("player", i)
|
||||
end
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user