Originally Posted by Phanx
Avoid infinite loops, and "action blocked in combat" errors:
Code:
local moving
hooksecurefunc(CharacterMicroButton, "SetPoint", function(self)
if moving or InCombatLockdown() then return end
moving = true
self:ClearAllPoints()
self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
moving = nil
end)
|
Actually those frames are not protected so you can freely move them in combat too.