Skip to content

Commit e3a1d2b

Browse files
committed
huh
1 parent 19906ae commit e3a1d2b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: ElvUI/Cata/Modules/Skins/Character.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ local function TitleManagerPane_Update(frame)
4747
end
4848

4949
local function PaperDollItemSlotButtonUpdate(frame)
50-
local id = frame.characterSlot and frame:GetID()
50+
if not frame.SetBackdropBorderColor then return end
51+
52+
local id = frame:GetID()
5153
local rarity = id and GetInventoryItemQuality('player', id)
5254
if rarity and rarity > 1 then
5355
local r, g, b = GetItemQualityColor(rarity)
@@ -245,8 +247,6 @@ function S:CharacterFrame()
245247
slot:SetTemplate(nil, true, true)
246248
slot:StyleButton()
247249

248-
slot.characterSlot = true -- for color function
249-
250250
S:HandleIcon(icon)
251251
icon:SetInside()
252252

Diff for: ElvUI/Classic/Modules/Skins/Character.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ local function ReputationFrameUpdate()
4242
end
4343

4444
local function PaperDollItemSlotButtonUpdate(frame)
45-
local id = frame.characterSlot and frame:GetID()
45+
if not frame.SetBackdropBorderColor then return end
46+
47+
local id = frame:GetID()
4648
local rarity = id and GetInventoryItemQuality('player', id)
4749
if rarity and rarity > 1 then
4850
local r, g, b = GetItemQualityColor(rarity)
@@ -156,8 +158,6 @@ function S:CharacterFrame()
156158
slot:SetTemplate(nil, true, true)
157159
slot:StyleButton()
158160

159-
slot.characterSlot = true -- for color function
160-
161161
S:HandleIcon(icon)
162162
icon:SetInside()
163163

0 commit comments

Comments
 (0)