mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 08:06:55 +00:00
nameplate: only use color if existing
This commit is contained in:
@@ -164,7 +164,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
|
||||
-- adjust healthbar color
|
||||
local red, green, blue, _ = healthbar:GetStatusBarColor()
|
||||
if pfUI_playerDB[name:GetText()] and pfUI_playerDB[name:GetText()]["class"] then
|
||||
if pfUI_playerDB[name:GetText()] and pfUI_playerDB[name:GetText()]["class"] and RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]] then
|
||||
healthbar:SetStatusBarColor(
|
||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].r,
|
||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].g,
|
||||
|
||||
Reference in New Issue
Block a user