Skip to content

Commit

Permalink
[Loot] GroupLoot: Prevent error in Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Nov 6, 2023
1 parent 398557b commit a55e343
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ShestakUI/Modules/Loot/GroupLoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ local function CreateRollFrame()
frame:SetFrameLevel(10)
frame:SetScript("OnEvent", OnEvent)
frame:RegisterEvent("CANCEL_LOOT_ROLL")
frame:RegisterEvent("CANCEL_ALL_LOOT_ROLLS")
frame:RegisterEvent("MAIN_SPEC_NEED_ROLL")
if T.Mainline then
frame:RegisterEvent("CANCEL_ALL_LOOT_ROLLS")
frame:RegisterEvent("MAIN_SPEC_NEED_ROLL")
end
frame:Hide()

local button = CreateFrame("Button", nil, frame)
Expand Down

0 comments on commit a55e343

Please sign in to comment.