Originally Posted by Seerah
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)
|
Thanks, Seerah, I'll try it out. I'd read the function() end was a problem, but then got confused because I'd also read elsewhere to add it to player and target frames to keep them from resetting. They don't cause any taint problems and they've stopped resetting. Is it because they're actually unlockable, then? Also, the pet frame also has the same function() end and no taint problems as far as I can tell. Kind of confused about this.
As for the combat check, I'll see if I can figure it out. Does that mean it'll reset when I'm in combat, or will it stay where I place it?