Skip to content

Commit

Permalink
protect these if plunder ends
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 18, 2025
1 parent b9fcf63 commit 61779bb
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions ElvUI/Mainline/Modules/Skins/PVP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ function S:Blizzard_PVPUI()

for i = 1, 4 do
local bu = _G['PVPQueueFrameCategoryButton'..i]
bu.Ring:Kill()
bu.Background:Kill()
S:HandleButton(bu)

bu.Icon:Size(45)
bu.Icon:ClearAllPoints()
bu.Icon:Point('LEFT', 10, 0)
S:HandleIcon(bu.Icon, true)
if bu then
bu.Ring:Kill()
bu.Background:Kill()
S:HandleButton(bu)

bu.Icon:Size(45)
bu.Icon:ClearAllPoints()
bu.Icon:Point('LEFT', 10, 0)
S:HandleIcon(bu.Icon, true)
end
end

local PVPQueueFrame = _G.PVPQueueFrame
Expand All @@ -62,9 +64,11 @@ function S:Blizzard_PVPUI()

-- Plunderstorm
local PlunderstormFrame = _G.PlunderstormFrame
PlunderstormFrame.Inset:StripTextures()
S:HandleButton(PlunderstormFrame.StartQueue)
S:HandleButton(_G.PVPQueueFrame.HonorInset.PlunderstormPanel.PlunderstoreButton)
if PlunderstormFrame then
PlunderstormFrame.Inset:StripTextures()
S:HandleButton(PlunderstormFrame.StartQueue)
S:HandleButton(_G.PVPQueueFrame.HonorInset.PlunderstormPanel.PlunderstoreButton)
end

-- Honor Frame
local HonorFrame = _G.HonorFrame
Expand Down

0 comments on commit 61779bb

Please sign in to comment.