fixed druid mana bar sometimes showing up on npc`s

This commit is contained in:
Meow
2026-03-05 10:27:56 +01:00
parent 48c5d50f51
commit b52187f37b
+10 -1
View File
@@ -577,6 +577,15 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
return
end
-- For non-player units, only show if the target is a Druid
if unit ~= "player" then
local _, unitClass = UnitClass(unit)
if unitClass ~= "DRUID" then
bar:Hide()
return
end
end
local powerType = UnitPowerType(unit)
-- Only show when NOT using mana (i.e., in Bear/Cat form)
@@ -665,4 +674,4 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
end
end
end
end)
end)