From: Aleksi Blinnikka Date: Sun, 10 Feb 2019 20:38:42 +0000 (+0200) Subject: Fix health not updating after death X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/66faadbf3b25d28e4a41306ccaa6284c9eb20d5e?hp=19b1609e82debe7790ea5ce6523c4753ea6b7104 Fix health not updating after death --- diff --git a/kehys/updater.lua b/kehys/updater.lua index fac538c..5114d5f 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -39,17 +39,23 @@ function addon.FrameUpdate(frame) if not frame.text:IsShown() then frame.text:Show() end if frame.health:IsShown() then frame.health:Hide() end if frame.shield:IsShown() then frame.shield:Hide() end + if frame.shieldhl:IsShown() then frame.shieldhl:Hide() end if frame.healpred:IsShown() then frame.healpred:Hide() end if frame.healabsorb:IsShown() then frame.healabsorb:Hide() end --if frame.auras:IsShown() then frame.auras:Hide() end + frame.prev.health = nil; + frame.prev.hmax = nil; elseif not UnitIsConnected(unit) then frame.text:SetText("DC"); if not frame.text:IsShown() then frame.text:Show() end if frame.health:IsShown() then frame.health:Hide() end if frame.shield:IsShown() then frame.shield:Hide() end + if frame.shieldhl:IsShown() then frame.shieldhl:Hide() end if frame.healpred:IsShown() then frame.healpred:Hide() end if frame.healabsorb:IsShown() then frame.healabsorb:Hide() end --if frame.auras:IsShown() then frame.auras:Hide() end + frame.prev.health = nil; + frame.prev.hmax = nil; else if UnitIsAFK(unit) then frame.text:SetText("afk");