spellInRange
Returns true if the UNIT is in range of the spell sent, otherwise false.
spellInRange(spell,[Unit]) : boolean-- altsspellinrange(spell, [unit]) : booleanspellreach(spell, [unit]) : boolean
1. See Wowpedia for more information on WoW Unit IDs. Will default to 'player' if nothing is specified as an argument.
Example
if spellInRange(FrostNova, 'arena1') and cooldown(FrostNova) == 0 then return cast(FrostNova)end
Note
This uses IsActionInRange() and GetActionInfo(), returning boolean.