From 82ec1460f8afd7774753c2fc79abf1147480ea7e Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Mon, 26 Jul 2021 14:35:20 +0200 Subject: [PATCH] fix feign death --- Modules/Healthbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Healthbar.lua b/Modules/Healthbar.lua index c62f16a..1ff3810 100644 --- a/Modules/Healthbar.lua +++ b/Modules/Healthbar.lua @@ -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