From 1ecb778b25581735fd61fbbbb8da0238e0acfcba Mon Sep 17 00:00:00 2001 From: d87 Date: Wed, 26 Oct 2022 02:46:54 +0700 Subject: [PATCH] Dragonflight update --- NugHealth-Mainline.toc | 2 +- NugHealth-BCC.toc => NugHealth-TBC.toc | 0 NugHealth.lua | 1 + NugHealth.toc | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename NugHealth-BCC.toc => NugHealth-TBC.toc (100%) diff --git a/NugHealth-Mainline.toc b/NugHealth-Mainline.toc index 67fca84..2d80251 100644 --- a/NugHealth-Mainline.toc +++ b/NugHealth-Mainline.toc @@ -1,4 +1,4 @@ -## Interface: 90100 +## Interface: 100002 ## Title: NugHealth ## Author: d87 ## SavedVariables: NugHealthDB diff --git a/NugHealth-BCC.toc b/NugHealth-TBC.toc similarity index 100% rename from NugHealth-BCC.toc rename to NugHealth-TBC.toc diff --git a/NugHealth.lua b/NugHealth.lua index 584c314..acc5402 100644 --- a/NugHealth.lua +++ b/NugHealth.lua @@ -544,6 +544,7 @@ local HideTimer = function(self, time) local pA = NugHealthDB.outOfCombatAlpha local rA = 1 - NugHealthDB.outOfCombatAlpha local a = pA + (p*rA) + if a < 0 then a = 0 end nhe:SetAlpha(a) if self.OnUpdateCounter >= fadeAfter + fadeTime then self:SetScript("OnUpdate",nil) diff --git a/NugHealth.toc b/NugHealth.toc index 2f4afd0..ea643e7 100644 --- a/NugHealth.toc +++ b/NugHealth.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 100002 ## Title: NugHealth ## Author: d87 ## SavedVariables: NugHealthDB