diff --git a/api/unitframes.lua b/api/unitframes.lua index 326e3601..51035987 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -375,7 +375,7 @@ function pfUI.uf:UpdateVisibility() end elseif self.label == "pettarget" then if not UnitIsVisible(unitstr) or not UnitExists("pet") then - self.frame:Hide() + self:Hide() return end end