From 128f32f57f7d576867e6b670cc7503c42c63eea8 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Sun, 7 Aug 2022 05:07:40 +0200 Subject: [PATCH] reset pet portrait texture + pet DEAD text disabled --- Modules/Pets.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Pets.lua b/Modules/Pets.lua index 4e9d648..f51c65c 100644 --- a/Modules/Pets.lua +++ b/Modules/Pets.lua @@ -77,6 +77,7 @@ function Pets:ResetUnit(unitId) end petFrame.healthBar:SetAlpha(0) petFrame.healthBar:SetScript("OnUpdate", nil) + petFrame.healthBar.portrait:SetTexture(nil) self:UnregisterEvent("UNIT_PET") end @@ -346,7 +347,7 @@ function Pets:SetHealthText(healthBar, health, healthMax) healthText = ("%d%%"):format(healthPercentage) end else - healthText = "DEAD" + healthText = "" end healthBar.healthText:SetText(healthText)