- Fixed the item level calculation when the player is using a main hand and offhand artifact.

This commit is contained in:
Tercio
2016-09-22 16:17:00 -03:00
parent 40f91a8784
commit 4da2839aa7
3 changed files with 23 additions and 14 deletions
+8 -2
View File
@@ -1135,8 +1135,14 @@ function ilvl_core:CalcItemLevel (unitid, guid, shout)
if (equip_id == 17) then
local itemId = select (2, strsplit (":", item))
if (artifact_offhands [itemId]) then
item_amount = 15
break
local mainHand = GetInventoryItemLink (unitid, 16)
if (mainHand) then
local iName, _, itemRarity, mainHandILevel, _, _, _, _, equipSlot = GetItemInfo (mainHand)
if (iLevel) then
item = mainHand
iLevel = mainHandILevel
end
end
end
end