fixed UNIT_HEALTH_FREQUENT

This commit is contained in:
Sumsebrum 2022-03-25 17:56:53 +01:00
parent f283ea994a
commit a8a6002f47

View File

@ -111,7 +111,7 @@ end
function Healthbar.OnEvent(self, event, unit) function Healthbar.OnEvent(self, event, unit)
local isDead = UnitExists(unit) and UnitIsDeadOrGhost(unit) local isDead = UnitExists(unit) and UnitIsDeadOrGhost(unit)
if event == "UNIT_HEALTH" or event == "UNIT_MAXHEALTH" then if event == "UNIT_HEALTH_FREQUENT" or event == "UNIT_MAXHEALTH" then
if isDead then if isDead then
Gladdy:SendMessage("UNIT_DEATH", unit) Gladdy:SendMessage("UNIT_DEATH", unit)
return return