mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
unitframes: only show pet happiness for hunters
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user