View Single Post
07-30-18, 04:11 PM   #12
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
A safe way to help prevent taint and keep UIParent working as intended.

Lua Code:
  1. local OnShow = function(frame)
  2.    frame:Hide()
  3. end
  4.  
  5. local list = {"TargetFrameBuff", "TargetFrameDebuff", "FocusFrameBuff", "FocusFrameDebuff"}
  6.  
  7. local aura, frame
  8. for x=1, #list do
  9.    frame = list[x]
  10.    for i=1, MAX_TARGET_BUFFS do
  11.       aura = _G[frame..i]
  12.       if aura then aura:HookScript('OnShow', OnShow) end
  13.    end
  14. end
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison

Last edited by jeruku : 07-31-18 at 07:10 AM. Reason: Typo... I'd be a great at this if it wasn't for typos.
  Reply With Quote