WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Highlight dispellable buffs (target/focus) for non-purge classes - Jax Classic Frames (https://www.wowinterface.com/forums/showthread.php?t=59817)

Nanatoo 03-10-24 04:03 PM

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


All times are GMT -6. The time now is 08:55 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI