diff --git a/Modules/Healthbar.lua b/Modules/Healthbar.lua index 1bc2e5a..4523a87 100644 --- a/Modules/Healthbar.lua +++ b/Modules/Healthbar.lua @@ -104,7 +104,7 @@ function Healthbar:CreateFrame(unit) self.frames[unit] = healthBar button.healthBar = healthBar self:ResetUnit(unit) - healthBar:RegisterUnitEvent("UNIT_HEALTH", unit) + healthBar:RegisterUnitEvent("UNIT_HEALTH_FREQUENT", unit) healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit) healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit) healthBar:SetScript("OnEvent", Healthbar.OnEvent) diff --git a/Modules/Pets.lua b/Modules/Pets.lua index 5a7eca1..d54ceab 100644 --- a/Modules/Pets.lua +++ b/Modules/Pets.lua @@ -233,7 +233,7 @@ function Pets:CreateFrame(unitId) healthBar.unit = unit button.healthBar = healthBar - healthBar:RegisterUnitEvent("UNIT_HEALTH", unit) + healthBar:RegisterUnitEvent("UNIT_HEALTH_FREQUENT", unit) healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit) healthBar:RegisterUnitEvent("UNIT_PORTRAIT_UPDATE", unit) healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit)