fixed UNIT_HEALTH_FREQUENT
This commit is contained in:
parent
f283ea994a
commit
a8a6002f47
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user