YourFrame:HookScript("OnShow", function(self) if not self:IsProtected() or not InCombatLockdown() then self:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -500, 500) end end)