From a4772e3d4b0c148ad7b4e281975c6fe2e9d1ae81 Mon Sep 17 00:00:00 2001 From: jmgibson1981 <69975336+jmgibson1981@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:30:28 -0700 Subject: [PATCH] unitframes: only show pet happiness for hunters --- api/unitframes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 9a33b9f7..326e3601 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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