Skip to content

Commit

Permalink
dont bother checking the itemlink when its not player either
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 26, 2025
1 parent 2c41ae9 commit fe60c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ElvUI/Core/Modules/UnitFrames/UnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,12 @@ do

local chestSlotItem, legSlotItem -- local cache of the items
function UF:UNIT_INVENTORY_CHANGED(_, unit) -- limited to Mages only currently
if unit ~= 'player' then return end

local ChestItem = GetInventoryItemLink('player', ChestSlotID) -- Mage: Regeneration
local LegItem = GetInventoryItemLink('player', LegSlotID) -- Mage: Mass Regeneration

if unit == 'player' and (chestSlotItem ~= ChestItem or legSlotItem ~= LegItem) then
if chestSlotItem ~= ChestItem or legSlotItem ~= LegItem then
chestSlotItem = ChestItem
legSlotItem = LegItem

Expand Down

0 comments on commit fe60c95

Please sign in to comment.