switch UNIT_HEALTH to UNIT_HEALTH_FREQUENT

This commit is contained in:
Sumsebrum 2022-03-24 20:23:50 +01:00
parent 2f20d305b6
commit d348b87ddf
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ function Healthbar:CreateFrame(unit)
self.frames[unit] = healthBar self.frames[unit] = healthBar
button.healthBar = healthBar button.healthBar = healthBar
self:ResetUnit(unit) self:ResetUnit(unit)
healthBar:RegisterUnitEvent("UNIT_HEALTH", unit) healthBar:RegisterUnitEvent("UNIT_HEALTH_FREQUENT", unit)
healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit) healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit)
healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit) healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit)
healthBar:SetScript("OnEvent", Healthbar.OnEvent) healthBar:SetScript("OnEvent", Healthbar.OnEvent)

View File

@ -233,7 +233,7 @@ function Pets:CreateFrame(unitId)
healthBar.unit = unit healthBar.unit = unit
button.healthBar = healthBar button.healthBar = healthBar
healthBar:RegisterUnitEvent("UNIT_HEALTH", unit) healthBar:RegisterUnitEvent("UNIT_HEALTH_FREQUENT", unit)
healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit) healthBar:RegisterUnitEvent("UNIT_MAXHEALTH", unit)
healthBar:RegisterUnitEvent("UNIT_PORTRAIT_UPDATE", unit) healthBar:RegisterUnitEvent("UNIT_PORTRAIT_UPDATE", unit)
healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit) healthBar:RegisterUnitEvent("UNIT_NAME_UPDATE", unit)