Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
GameMaster-Switch-State would be saved but not correctly loaded (Fixed).
  • Loading branch information
Macx-Lio authored Nov 13, 2024
1 parent fe67567 commit 0dd8f37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MultiBotHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ MultiBot:SetScript("OnEvent", function()
local tButton = MultiBot.frames["MultiBar"].frames["Main"].buttons["Masters"]

if(MultiBotSave["Masters"] == "true") then
MultiBot.GM = true
tButton.setDisable()
tButton.doLeft(tButton)
end
Expand Down Expand Up @@ -288,7 +289,7 @@ MultiBot:SetScript("OnEvent", function()
if(event == "CHAT_MSG_SYSTEM") then
if(MultiBot.isInside(arg1, "Accountlevel", "你帐号的等级为")) then
local tLevel = tonumber(MultiBot.doSplit(arg1, ": ")[2])
MultiBot.GM = MultiBot.IF(tLevel > 1, true, false)
MultiBot.GM = tLevel > 1
end

if(MultiBot.isInside(arg1, "Possible strategies")) then
Expand Down

0 comments on commit 0dd8f37

Please sign in to comment.