Thread Tools Display Modes
01-19-23, 05:09 AM   #21
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Ya, I copied from a quote earlier and didn't catch it undid a fix I had made in the post it was quoted from. I fixed it in the last post, but since this is going on a new page, I'll post it here too.

Lua Code:
  1. local function TargetFrame_UpdateAuras(self)
  2.     for buff in self.auraPools:GetPool("TargetBuffFrameTemplate"):EnumerateActive() do
  3.         local data=C_UnitAuras.GetAuraDataByAuraInstanceID(buff.unit,buff.auraInstanceID);
  4.         buff.Stealable:SetShown(data.isStealable or data.dispelName=="Magic");
  5.     end
  6. end
  7.  
  8. hooksecurefunc(TargetFrame,"UpdateAuras",TargetFrame_UpdateAuras);
  9. hooksecurefunc(FocusFrame,"UpdateAuras",TargetFrame_UpdateAuras);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 01-19-23 at 05:12 AM.
  Reply With Quote
01-19-23, 05:43 AM   #22
Lesteryoung
A Black Drake
Join Date: Aug 2015
Posts: 81
Ok, now that's working. Ty so much.
  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