From cf9c77fde4ed6bce3328c126b42c13eade25c460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20F=C3=A6rch=20Hansen?= Date: Mon, 3 Jul 2023 18:03:13 +0200 Subject: [PATCH] wow classic hardcore compatibility --- NamePlatesThreat.lua | 2 +- NamePlatesThreat_Vanilla.toc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NamePlatesThreat.lua b/NamePlatesThreat.lua index 9a55991..ab7c133 100644 --- a/NamePlatesThreat.lua +++ b/NamePlatesThreat.lua @@ -1011,7 +1011,7 @@ function NPTframe:Initialize() self.subTitle:SetJustifyH("LEFT") _, _, _, self.colBorderOnly = GetBuildInfo() - if self.colBorderOnly >= 30402 then + if self.colBorderOnly >= 30402 or WOW_PROJECT_ID == WOW_PROJECT_CLASSIC and self.colBorderOnly >= 11404 then self.addonDefault = CreateFrame("Button", "addonDefault", self, "UIPanelButtonTemplate") self.addonDefault:SetPoint("RIGHT", self, "TOPRIGHT", -32, -24) self.addonDefault:SetText("Defaults") diff --git a/NamePlatesThreat_Vanilla.toc b/NamePlatesThreat_Vanilla.toc index afd149e..2076eea 100644 --- a/NamePlatesThreat_Vanilla.toc +++ b/NamePlatesThreat_Vanilla.toc @@ -1,4 +1,4 @@ -## Interface: 11403 +## Interface: 11404 ## Title: NamePlatesThreat ## Notes: Colors the nameplate healthbar according to threat. ## Version: 3.8