Dasteman |
08-22-17 04:57 PM |
Moving "DebuffButton1" separately from BuffFrame
Hi,
Got this script and I have some issue with it. I have the second script to move Buffs only and this one to move Debuffs only. The script itself works but it is giving me a lot of errors in PVP fights.
Do you know guys how to fix it?
Lua Code:
hooksecurefunc("AuraButton_Update", function(buttonName, index, filter) local buffName = buttonName .. index if "DebuffButton1" ~= buffName then return end local buff = _G[buffName] if nil == buff or buff.moved then return end buff:ClearAllPoints() buff:SetPoint("TOP", PlayerFrame, "BOTTOM", 98, -10) buff.SetPoint = function() end buff.moved = true end)
Lua Code:
5x [ADDON_ACTION_BLOCKED] AddOn 'Scripts' tried to call the protected function 'ArenaEnemyFrames:ClearAllPoints()'. !BugGrabber\BugGrabber.lua:573: in function <!BugGrabber\BugGrabber.lua:573> [C]: in function `ClearAllPoints' FrameXML\UIParent.lua:2854: in function `UIParentManageFramePositions' FrameXML\UIParent.lua:2142: in function <FrameXML\UIParent.lua:2129> [C]: in function `SetAttribute' FrameXML\UIParent.lua:2892: in function `UIParent_ManageFramePositions' FrameXML\BuffFrame.lua:331: in function `BuffFrame_UpdateAllBuffAnchors' FrameXML\BuffFrame.lua:104: in function `BuffFrame_Update' FrameXML\BuffFrame.lua:49: in function <FrameXML\BuffFrame.lua:45> Locals:
|