C_SpellBook.IsSpellBookItemInRange

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the current target is within range of the SpellBookIem; False if out of range; Nil if range check was invalid

inRange = C_SpellBook.IsSpellBookItemInRange(spellBookItemSlotIndex, spellBookItemSpellBank [, targetUnit])

Arguments

spellBookItemSlotIndex
number
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet
targetUnit
string? : UnitToken - Optional specific target; If not supplied, player's current target (if any) will be used

Returns

inRange
boolean? - May be nil if the range check was invalid, ie due to invalid spell, missing/invalid target, unknown spell, etc