C_Spell .IsSpellInRange
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 spell; False if out of range; Nil if range check was invalid
inRange = C_Spell.IsSpellInRange(spellIdentifier [, targetUnit])
Arguments
- spellIdentifier
- number|string : SpellIdentifier
- 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