diff --git a/IceBarElement.lua b/IceBarElement.lua index f6a8e19..8f8577e 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -7,7 +7,7 @@ IceBarElement.BackgroundAlpha = 0.25 IceBarElement.TexturePath = IceHUD.Location .. "\\textures\\" IceBarElement.BackgroundTexture = IceHUD.Location .. "\\textures\\HiBarBG" -IceBarElement.BarProportion = 0.35 +IceBarElement.BarProportion = 0.36 IceBarElement.BarTextureWidth = 128 IceBarElement.prototype.barFrame = nil @@ -129,7 +129,7 @@ end -- Creates background for the bar function IceBarElement.prototype:CreateBackground() if not (self.frame) then - self.frame = CreateFrame("StatusBar", nil, self.parent) + self.frame = CreateFrame("StatusBar", "IceHUD_"..self.name, self.parent) end self.frame:SetFrameStrata("BACKGROUND") diff --git a/IceElement.lua b/IceElement.lua index 0afc9be..bafac3c 100644 --- a/IceElement.lua +++ b/IceElement.lua @@ -125,7 +125,7 @@ end -- This should be overwritten by inheriting classes function IceElement.prototype:CreateFrame() if not (self.frame) then - self.frame = CreateFrame("Frame", nil, self.parent) + self.frame = CreateFrame("Frame", "IceHUD_"..self.name, self.parent) end end diff --git a/modules/TargetHealth.lua b/modules/TargetHealth.lua index 1d9c336..3da4b94 100644 --- a/modules/TargetHealth.lua +++ b/modules/TargetHealth.lua @@ -131,6 +131,9 @@ function TargetHealth.prototype:MobHealth(event) -- we are getting valid values from the server, no need for MobHealth2 if (self.maxHealth ~= 100) then + self.mobHealth = nil + self.mobMaxHealth = nil + self:UpdateHealthText(false) return end