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.


hasRange = SpellHasRange(index, "bookType") or SpellHasRange("name")


  • index - Index of a spell in the spellbook (number, spellbookID)

  • bookType - Type of spellbook (string)

    • pet - The pet's spellbook
    • spell - The player's spellbook

  • name - Name of a spell (string)


  • hasRange - 1 if the spell has an effective range; otherwise nil. (1nil)