From a1ee5d1ef228a9e6c4dd113f0517847b4f1b4e09 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 1 Sep 2022 20:47:03 -0300 Subject: [PATCH] Fixes (8) --- Libs/LibOpenRaid/LibOpenRaid.lua | 9 ++++++--- frames/anime.xml | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index b5acad24..ccedd6ff 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -40,14 +40,17 @@ BUGS: --]=] +local IsDragonflight = function() + return select(4, GetBuildInfo()) >= 100000 +end --don't load if it's not retail, emergencial patch due to classic and bcc stuff not transposed yet -if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE) then +if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not IsDragonflight()) then return end local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 43 +local CONST_LIB_VERSION = 44 LIB_OPEN_RAID_CAN_LOAD = false --declae the library within the LibStub @@ -140,7 +143,7 @@ LIB_OPEN_RAID_CAN_LOAD = false for i = 1, select("#", ...) do local clientVersion = select(i, ...) - if (clientVersion == "retail" and WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then --retail + if (clientVersion == "retail" and (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE or IsDragonflight())) then --retail return true elseif (clientVersion == "classic_era" and WOW_PROJECT_ID == WOW_PROJECT_CLASSIC) then --classic era (vanila) diff --git a/frames/anime.xml b/frames/anime.xml index 23f88934..3ffd5dff 100644 --- a/frames/anime.xml +++ b/frames/anime.xml @@ -25,11 +25,11 @@ - - + + - + self:GetRegionParent():Hide(); @@ -52,8 +52,8 @@ - - + + self:GetParent():Hide(); @@ -74,9 +74,9 @@ - + - + self:GetParent():Hide(); @@ -229,8 +229,8 @@