Skip to content

Commit

Permalink
Fix IsEquippedItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Mar 19, 2024
1 parent 7b61c28 commit c926afd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ local abs = math.abs
local lower = string.lower
local insert, remove, sort, wipe = table.insert, table.remove, table.sort, table.wipe

local CGetItemInfo = C_Item.GetItemInfo
local IsEquippedItem = C_Item.IsEquippedItem
local UA_GetPlayerAuraBySpellID = C_UnitAuras.GetPlayerAuraBySpellID
local FindStringInInventoryItemTooltip = ns.FindStringInInventoryItemTooltip
local ResetDisabledGearAndSpells = ns.ResetDisabledGearAndSpells
local WipeCovenantCache = ns.WipeCovenantCache

local CGetItemInfo = ns.CachedGetItemInfo
local RC = LibStub( "LibRangeCheck-3.0" )

-- Abandoning AceEvent in favor of darkend's solution from:
Expand Down Expand Up @@ -714,7 +715,7 @@ do
for set, items in pairs( class.gear ) do
state.set_bonus[ set ] = 0
for item, _ in pairs( items ) do
if item > maxItemSlot and IsEquippedItem( CGetItemInfo( item ) ) then
if item > maxItemSlot and IsEquippedItem( item ) then
state.set_bonus[ set ] = state.set_bonus[ set ] + 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion Hekili.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100205
## Interface: 100206
## Version: @project-version@
## Title: Hekili
## Author: Hekili
Expand Down

0 comments on commit c926afd

Please sign in to comment.