Skip to content

Commit

Permalink
fixing some version checks to include cata (IE version 4)
Browse files Browse the repository at this point in the history
This fixes the shaman totem bar so it's moveable again
It also seems to prevent some code from running isn't compatible with cata
  • Loading branch information
robertzak committed May 12, 2024
1 parent 869e07a commit 2da882a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CT_BottomBar/CT_BottomBar_MultiCast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ local function addon_Register()
);
end

if module:getGameVersion() == 3 and UnitClassBase("player") == "SHAMAN" then
if (module:getGameVersion() == 3 or module:getGameVersion() == 4) and UnitClassBase("player") == "SHAMAN" then
module.loadedAddons["MultiCastBar"] = addon_Register;
end
2 changes: 1 addition & 1 deletion CT_Core/CT_Core_Other.lua
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ elseif (module:getGameVersion() == 2) then
UIParent_ManageFramePositions();
end); -- end post-hook of QuestWatch_Update()

elseif module:getGameVersion() == 3 then
elseif (module:getGameVersion() == 3 or module:getGameVersion() == 4) then

local dummySetText = CreateFrame("Button").SetText
for __, btn in pairs(QuestLogListScrollFrame.buttons) do
Expand Down

0 comments on commit 2da882a

Please sign in to comment.