View Single Post
10-05-20, 03:31 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
Looks like it's also running from the OnShow handler on the template. You'll have to update the pointer after you hook the function. Since the hook is made to only apply to that one castbar, you only need to update the function pointer on that one.
Code:
TargetFrameSpellBar:SetScript("OnShow",Target_Spellbar_AdjustPosition);
Note: The original function only repositions the anchor. Race conditions may happen if you start putting other modifications in there.
__________________
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 : 10-05-20 at 03:39 PM.
  Reply With Quote