Originally Posted by expand
ty, how about making the auras of the target, focus, and tot noninteractive?
|
These took a little more time. The target and focus frames dynamicly create their buff and debuff frames. The ToT frame has a static number of 4 frames at all times.
lua Code:
-- TargetFrame and FocusFrame
hooksecurefunc("TargetFrame_UpdateAuras",function(self)
local name=self:GetName();
for i=1,MAX_TARGET_BUFFS do
local frame=_G[name.."Buff"..i];
if frame then frame:EnableMouse(false); end
end
for i=1,(self.maxDebuffs or MAX_TARGET_DEBUFFS) do
local frame=_G[name.."Debuff"..i];
if frame then frame:EnableMouse(false); end
end
end);
-- Target of Target
for i=1,4 do _G["TargetFrameToTDebuff"..i]:EnableMouse(false); end