switch UNIT_HEALTH to UNIT_HEALTH_FREQUENT
This commit is contained in:
parent
2f20d305b6
commit
d348b87ddf
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user