Returns whether an item has a range limitation for its use. For example, Mistletoe can only be used on another character within a given range of the player, but a Hearthstone has no target and thus no range restriction. Returns nil for items which have a range restriction but are area-targeted and not unit-targeted (e.g. grenades).
See also Item functions.
Signature:
hasRange
=
ItemHasRange(itemID)
or
ItemHasRange("itemName")
or
ItemHasRange("itemLink")
Arguments:
itemID
- An item's ID (number
)itemName
- An item's name (string
)itemLink
- An item's hyperlink, or any string containing theitemString
portion of an item link (string
)
Returns:
hasRange
- 1 if the item has an effective range; otherwise nil. (1nil
)