pettarget: alternate position if pet is missing

This commit is contained in:
shagu
2018-06-01 10:31:19 +02:00
parent 52ac2fd642
commit 532a212871
+1 -1
View File
@@ -21,6 +21,6 @@ pfUI:RegisterModule("pettarget", function ()
pfUI.uf.pettarget = pfUI.uf:CreateUnitFrame("PetTarget", nil, C.unitframes.ptarget, .2)
pfUI.uf.pettarget:UpdateFrameSize()
pfUI.uf.pettarget:SetPoint("TOP", pfUI.uf.pet, "BOTTOM", 0, -default_border)
pfUI.uf.pettarget:SetPoint("TOP", pfUI.uf.pet or pfUI.uf.target or UIParent, "BOTTOM", 0, -default_border)
UpdateMovable(pfUI.uf.pettarget)
end)