recognize WotLKC as "timewalking" everywhere GetBuildInfo is used
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ local PixelUtil = PixelUtil or DFPixelUtil
|
||||
if (not PixelUtil) then
|
||||
--check if is in classic or TBC wow, if it is, build a replacement for PixelUtil
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then
|
||||
PixelUtil = {
|
||||
SetWidth = function (self, width) self:SetWidth (width) end,
|
||||
SetHeight = function (self, height) self:SetHeight (height) end,
|
||||
|
||||
@@ -13,7 +13,7 @@ local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
|
||||
|
||||
local isTimewalkWoW = function()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -131,7 +131,7 @@ LIB_OPEN_RAID_CAN_LOAD = false
|
||||
|
||||
local isTimewalkWoW = function()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -965,6 +965,9 @@ if (GetBuildInfo():match ("%d") == "1") then
|
||||
elseif (GetBuildInfo():match ("%d") == "2") then
|
||||
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {}
|
||||
|
||||
elseif (GetBuildInfo():match ("%d") == "3") then
|
||||
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {}
|
||||
|
||||
else
|
||||
LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {
|
||||
[44461] = {name = GetSpellInfo(44461) .. " (" .. L["STRING_EXPLOSION"] .. ")"}, --Living Bomb (explosion)
|
||||
|
||||
Reference in New Issue
Block a user