>wowhelm_
Loading ruleset status…
~/forever/addon-api/function/C_Spell.IsSpellInRange

C_Spell.IsSpellInRange

documented function · Spell
C_Spell.IsSpellInRange(spellIdentifier, targetUnit?) : inRange

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

──ARGUMENTS
spellIdentifier
SpellIdentifier
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
AllowedWhenTainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.