mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
show mana for everyone that has a target as druid
This commit is contained in:
@@ -490,9 +490,7 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
|
||||
-- Shows base mana when druid is in shapeshift form (Bear/Cat uses Rage/Energy)
|
||||
-- Uses Nampower's GetUnitField to get base mana values
|
||||
-- Fully self-contained: uses its own config settings from C.unitframes.druidmana*
|
||||
local _, playerClass = UnitClass("player")
|
||||
|
||||
if GetUnitField and pfUI.uf and playerClass == "DRUID" and pfUI_config.unitframes.druidmanabar == "1" then
|
||||
if GetUnitField and pfUI.uf and pfUI_config.unitframes.druidmanabar == "1" then
|
||||
local rawborder, default_border = GetBorderSize("unitframes")
|
||||
local DC = C.unitframes -- druid mana config lives here as druidmana* keys
|
||||
|
||||
@@ -623,7 +621,8 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
|
||||
end
|
||||
|
||||
-- ===== Player Druid Mana Bar =====
|
||||
if pfUI.uf.player then
|
||||
local _, playerClass = UnitClass("player")
|
||||
if pfUI.uf.player and playerClass == "DRUID" then
|
||||
local playerMana = CreateDruidManaBar(pfUI.uf.player, "player")
|
||||
|
||||
if playerMana then
|
||||
|
||||
Reference in New Issue
Block a user