unitframes: only show pet happiness for hunters

This commit is contained in:
jmgibson1981
2025-01-06 02:30:28 -07:00
committed by GitHub
parent 91a602f0bb
commit a4772e3d4b
+2 -1
View File
@@ -1411,7 +1411,8 @@ function pfUI.uf:RefreshIndicators(unit)
end
if unit.happinessIcon and unit:GetName() == "pfPet" then -- Happiness Icon
if unit.config.happinessicon == "0" then
local _, pclass = UnitClass("player")
if unit.config.happinessicon == "0" or pclass ~= "HUNTER" then
unit.happinessIcon:Hide()
else
if UnitIsVisible("pet") then