Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
--EVERY FRAME TRIGGER
function()
local buffs = {"Greater Blessing of Kings", "Greater Blessing of Wisdom"} --Define buffs to look for
for k,v in ipairs(buffs) do --Go through array looking for each buff
if UnitBuff("player", v) then --If it finds the buff then
aura_env.icon = select(3, UnitBuff("player", v)) --Gets the icon and stores it in a protected variable
return true --Returns true to show aura
end
end
end
--ICON INFO
function()
return aura_env.icon --Returns icon stored previously
end