Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-29-22, 09:55 AM   #1
prev
A Kobold Labourer
Join Date: Dec 2022
Posts: 1
(HELP) Dispellable Debuffs Highlighted for non-purge Classes

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!
Attached Thumbnails
Click image for larger version

Name:	cf036fc84a09be41bcfb19d4e459a842.png
Views:	64
Size:	12.1 KB
ID:	9780  
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » (HELP) Dispellable Debuffs Highlighted for non-purge Classes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off