fix feign death

This commit is contained in:
Sumsebrum 2021-07-26 14:35:20 +02:00
parent 23b9e2dfae
commit 82ec1460f8

View File

@ -132,7 +132,7 @@ function Healthbar:SetHealthText(healthBar, health, healthMax)
local healthText
local healthPercentage = floor(health * 100 / healthMax)
if health == 0 then
if health == 0 and UnitExists(healthBar.unit) and UnitIsDeadOrGhost(healthBar.unit) then
self:UNIT_DEATH(healthBar.unit)
return
end