From a55e343ef6570ab750393fe7f448563a4da83766 Mon Sep 17 00:00:00 2001 From: EsreverWoW <49285632+EsreverWoW@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:26:26 -0600 Subject: [PATCH] [Loot] GroupLoot: Prevent error in Classic --- ShestakUI/Modules/Loot/GroupLoot.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ShestakUI/Modules/Loot/GroupLoot.lua b/ShestakUI/Modules/Loot/GroupLoot.lua index 463b4464e..1609c164c 100644 --- a/ShestakUI/Modules/Loot/GroupLoot.lua +++ b/ShestakUI/Modules/Loot/GroupLoot.lua @@ -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)