Thread Tools Display Modes
03-10-24, 04:03 PM   #1
Nanatoo
A Kobold Labourer
Join Date: Mar 2024
Posts: 1
Highlight dispellable buffs (target/focus) for non-purge classes - Jax Classic Frames

Hi All,

I've been using this bit of code all of DF to highlight dispellable buffs on the target/focus frame for classes without a dispel (found here from SDPhantom):

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);

However, since 10.2.5, I've been using Jax Classic Frames (https://github.com/skidsh/JaxClassicFrames) and the code above no longer works.

Would anyone know how I could edit the above code or the code within Jax Classic Frames to highlight dispellable buffs on the target/focus frame for all classes (rather than only classes with a dispel)?

Any help would greatly be appreciated!

Thank you for your time
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Highlight dispellable buffs (target/focus) for non-purge classes - Jax Classic Frames


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