add special check for DBM-Frostmourne so it works properly

(cherry picked from commit 69d029a7f55a5f2818db654f88c1372cb2da5814)
This commit is contained in:
NoM0Re
2025-10-29 18:15:34 +01:00
committed by andrew6180
parent 8e19bd2546
commit 8f17b7f3c1
+14 -9
View File
@@ -38,15 +38,20 @@ local dbmSupportStates = {
}
local dbmSupportStatus = dbmSupportStates.UNSUPPORTED
if (DBM and type(DBM.Revision) == "number" and DBM.Revision >= 20250312000000) then
-- DBM 2025.03.12.000000
dbmSupportStatus = dbmSupportStates.LATEST
elseif (DBM and type(DBM.Revision) == "number" and DBM.Revision >= 20250209000000) then
-- DBM 2025.02.09.000000
dbmSupportStatus = dbmSupportStates.COMPATIBLE
elseif (DBM and type(DBM.ReleaseRevision) == "number" and DBM.ReleaseRevision >= 7005) then
-- DBM 7.0.5
dbmSupportStatus = dbmSupportStates.LEGACY
do
local site = DBM and GetAddOnMetadata("DBM-Core", "X-Website")
if site and site:match("broizter") and site:match("DBM%-Frostmourne") then
dbmSupportStatus = dbmSupportStates.LEGACY
elseif (DBM and type(DBM.Revision) == "number" and DBM.Revision >= 20250312000000) then
-- DBM 2025.03.12.000000
dbmSupportStatus = dbmSupportStates.LATEST
elseif (DBM and type(DBM.Revision) == "number" and DBM.Revision >= 20250209000000) then
-- DBM 2025.02.09.000000
dbmSupportStatus = dbmSupportStates.COMPATIBLE
elseif (DBM and type(DBM.ReleaseRevision) == "number" and DBM.ReleaseRevision >= 7005) then
-- DBM 7.0.5
dbmSupportStatus = dbmSupportStates.LEGACY
end
end
local barOptions = DBM and type(DBM.ReleaseRevision) == "number" and (