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