GetItemEquippedByHeroOfEquipmentTypeBJ

Parameters
whichUnitunit
whichEquipmentTypeequipmentType
comment
patch

3.0.0.24268

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
return type
item
Source code
function GetItemEquippedByHeroOfEquipmentTypeBJ takes unit whichUnit, equipmentType whichEquipmentType returns item
    local integer index = GetEquipmentInventoryIndexOfEquipmentTypeBJ(whichUnit, whichEquipmentType)

    if (index == 0) then
        return null
    else
        return UnitItemInEquipmentSlot(whichUnit, ConvertLoadoutSlot(index - 1))
    endif
endfunction