So prior to Dragonflight I used a script to create the "stealable" glow around dispellable buffs on enemies for classes that don't possess an offensive dispel. With the overhaul of the UI in Dragonflight it no longer works. I attached an image that shows what I mean.
Code that worked before Dragonflight:
Code:
hooksecurefunc('TargetFrame_UpdateAuras', function(self)
local FrameStealable
local frameName
local icon
local debuffType
local selfName = self:GetName()
local isEnemy = UnitIsEnemy(PlayerFrame.unit, self.unit)
for i = 1, MAX_TARGET_BUFFS do
_, icon, _, debuffType = UnitBuff(self.unit, i)
frameName = selfName..'Buff'..i
if ( icon and ( not self.maxBuffs or i <= self.maxBuffs ) ) then
frameStealable = _G[frameName..'Stealable']
if ( isEnemy and debuffType == 'Magic' ) then
frameStealable:Show()
else
frameStealable:Hide()
end
end
end
end)
I don't know alot about LUA but any help is appreciated. Thank you!