View Single Post
07-23-20, 11:41 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
The function is called only when the frames .threatNumericIndicator shows/hides. Try running the function after hooking it to set an initial state.

Slight change to SkinTarget:
Code:
local function SkinTarget(init)
	if init or TargetFrame:IsShown() then
...
Code:
hooksecurefunc("TargetFrame_UpdateAuras", SkinTarget)
SkinTarget(true)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-23-20 at 12:18 PM.
  Reply With Quote