GetItemOfEquipmentTypeFromUnitBagBJ
- Parameters
whichUnit unitwhichEquipmentType equipmentType- 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 GetItemOfEquipmentTypeFromUnitBagBJ takes unit whichUnit, equipmentType whichEquipmentType returns item local integer index = GetInventoryBagIndexOfEquipmentTypeBJ(whichUnit, whichEquipmentType) if (index == 0) then return null else return UnitItemInBagSlot(whichUnit, index - 1) endif endfunction