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.
Signature:
hasRange
=
SpellHasRange(index,
"bookType")
or
SpellHasRange("name")
Arguments:
index
- Index of a spell in the spellbook (number
, spellbookID)bookType
- Type of spellbook (string
)pet
- The pet's spellbookspell
- The player's spellbook
name
- Name of a spell (string
)
Returns:
hasRange
- 1 if the spell has an effective range; otherwise nil. (1nil
)