mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
fixed druid mana bar sometimes showing up on npc`s
This commit is contained in:
+10
-1
@@ -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)
|
||||
Reference in New Issue
Block a user