Returns whether an item has a range limitation for its use. For example: Shadowbolt can only be used on a unit within a given range of the player; Ritual of Summoning requires a target but has no range restriction; Fel Armor has no target and thus no range restriction.
See also Spell functions.
index- Index of a spell in the spellbook (
bookType- Type of spellbook (
pet- The pet's spellbook
spell- The player's spellbook
name- Name of a spell (
hasRange- 1 if the spell has an effective range; otherwise nil. (