GetItemEquippedByHeroOfTypeBJ
- Parameters
whichUnit unititemId integer- 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 GetItemEquippedByHeroOfTypeBJ takes unit whichUnit, integer itemId returns item local integer index = GetEquipmentInventoryIndexOfItemTypeBJ(whichUnit, itemId) if (index == 0) then return null else return UnitItemInEquipmentSlot(whichUnit, ConvertLoadoutSlot(index - 1)) endif endfunction