C_SpellBook .IsSpellBookItemInRange
Jump to navigation
Jump to search
![]() ![]() ![]() ![]() |
C_Spell.IsSpellInRange |
![]() |
+ 11.0.2 |
![]() ![]() ![]() ![]() |
C_SpellBook.IsSpellBookItemInRange |
![]() |
+ 11.0.2 |
![]() ![]() |
IsSpellInRange |
![]() ![]() ![]() |
+ 2.0.1, - 11.0.2 |
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