From 599fde6581ac3bccdce35e1d98605494263b49db Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Tue, 27 Jul 2021 16:55:00 +0200 Subject: [PATCH] minor fix healthbar --- Modules/Healthbar.lua | 4 +++- README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/Healthbar.lua b/Modules/Healthbar.lua index 28d4d57..a9d9d96 100644 --- a/Modules/Healthbar.lua +++ b/Modules/Healthbar.lua @@ -257,7 +257,9 @@ function Healthbar:ENEMY_SPOTTED(unit) healthBar.nameText:SetText(button.name) end - healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1) + if button.class then + healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1) + end end function Healthbar:UNIT_HEALTH(unit, health, healthMax) diff --git a/README.md b/README.md index 59aa436..f4bdfb5 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ The goal is to make Gladdy highly configurable in it's appearance. Everything ca ### v1.19-Beta - fix gladdy frames not showing v2 +- minor bug fixes ### v1.18-Beta - castbar font now working properly