minor fix healthbar
This commit is contained in:
parent
582ca88b59
commit
599fde6581
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user