Update almost all auras to move away from using globals to using aura_env

This commit is contained in:
2024-03-23 12:37:25 +01:00
parent 216d1c0e01
commit a6ddee60ae
29 changed files with 378 additions and 3451 deletions

View File

@@ -1,16 +1,16 @@
-- TICKER_200
function()
for _, unit in ipairs(Units) do
if UnitExists(unit) and not UnitIsDeadOrGhost(unit) and HasDispellableDebuff(unit) then
for _, unit in ipairs(aura_env.Units) do
if UnitExists(unit) and not UnitIsDeadOrGhost(unit) and aura_env.HasDispellableDebuff(unit) then
local unitName = UnitName(unit)
local frame = GetFrameFromName(unitName)
local frame = aura_env.GetFrameFromName(unitName)
if frame == nil then
print("Frame not found for " .. unitName)
-- Unexpected behavior, bail!
return
end
-- print("Dispel " .. unitName)
MakeFrameGlow(frame)
aura_env.MakeFrameGlow(frame)
end
end
end