GetItemOfTypeFromUnitBJ
- Parameters
-
whichUnit unit
itemId integer
- comment
- patch
-
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
item
- Source code
-
function GetItemOfTypeFromUnitBJ takes unit whichUnit, integer itemId returns item local integer index = GetInventoryIndexOfItemTypeBJ(whichUnit, itemId) if (index == 0) then return null else return UnitItemInSlot(whichUnit, index - 1) endif endfunction