Skip to content

Commit

Permalink
adjust itemlevel datatext for cata
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed May 2, 2024
1 parent b04b6fa commit 02a72b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ElvUI/Core/Modules/DataTexts/ItemLevel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ local r, g, b, avg, avgEquipped, avgPvp = 1, 1, 1, 0, 0, 0
local db

local function OnEvent(self)
if E.Retail then
if E.Retail or E.Cata then
avg, avgEquipped, avgPvp = GetAverageItemLevel()
r, g, b = GetItemLevelColor()
r, g, b = E:ColorizeItemLevel(avg)

local hex = db.rarityColor and E:RGBToHex(r, g, b) or '|cFFFFFFFF'

Expand All @@ -36,7 +36,7 @@ local function OnEvent(self)
end

local function OnEnter()
if not E.Retail then return end
if not (E.Retail or E.Cata) then return end

DT.tooltip:ClearLines()

Expand Down

0 comments on commit 02a72b1

Please sign in to comment.