C_SpellBook.SpellBookItemHasRange

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the SpellBookIem has a min and/or max range greater than 0; Will always return false if it is not a spell

hasRange = C_SpellBook.SpellBookItemHasRange(spellBookItemSlotIndex, spellBookItemSpellBank)

Arguments

spellBookItemSlotIndex
number
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet

Returns

hasRange
boolean