This line is your problem that causes taint:
Lua Code:
TargetFrameToT.SetPoint = function() end
Instead, you need to hook it securely:
Lua Code:
local newSetPoint = TargetFrameToT.SetPoint
hooksecurefunc(TargetFrameToT, "SetPoint", function()
newSetPoint(TargetFrameToT, "CENTER",TargetFrame,"CENTER", 60,100)
end)
That way, every time the game tries to move the ToT frame, your function will fire immediately after and move it right back. (Note: you may wish to add in a check so that it doesn't try to move it while in combat)