RectContainsItem

Parameters
whichItem item
r rect
return type
boolean
Source code
function RectContainsItem takes item whichItem, rect r returns boolean
    if (whichItem == null) then
        return false
    endif

    if (IsItemOwned(whichItem)) then
        return false
    endif

    return RectContainsCoords(r, GetItemX(whichItem), GetItemY(whichItem))
endfunction
Source
Blizzard.j
wc3modding.com
RectContainsItem