Optimize and harden raid frames

This commit is contained in:
Dusk-92
2026-08-30 09:13:12 +02:00
parent 38674064d6
commit f4685c9e01
8 changed files with 123 additions and 99 deletions
+10 -1
View File
@@ -1,5 +1,6 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local API = ShaguTweaks.API or {}
local module = ShaguTweaks:register({
title = T["Show Dispel Indicators"],
@@ -68,7 +69,15 @@ module.enable = function(self)
for dtype in pairs(debuffs) do frame.affected[dtype] = nil end
for i = 1, 16 do
local _, _, dtype = UnitDebuff(frame.unitstr, i)
local dtype
if API.aurapositional and API.UnitDebuff then
local _, _, _, debuffType = API.UnitDebuff(frame.unitstr, i)
dtype = debuffType
else
local _, _, debuffType = UnitDebuff(frame.unitstr, i)
dtype = debuffType
end
if dtype then frame.affected[dtype] = true end
end