~/forever/addon-api/function/C_SpellBook.IsSpellBookItemInRange
C_SpellBook.IsSpellBookItemInRange
documented function · SpellBook
C_SpellBook.IsSpellBookItemInRange(spellBookItemSlotIndex, spellBookItemSpellBank, targetUnit?) : inRangeReturns true if the current target is within range of the SpellBookIem; False if out of range; Nil if range check was invalid
──ARGUMENTS
- spellBookItemSlotIndex
- luaIndex
- spellBookItemSpellBank
- SpellBookSpellBank
- targetUnit
- UnitToken, optional (Optional specific target; If not supplied, player's current target (if any) will be used)
──RETURNS
- inRange
- bool, optional (May be nil if the range check was invalid, ie due to unknown/invalid spell, missing/invalid target, etc)
──DETAILS
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.