WoW:API IsActionInRange: Difference between revisions

No edit summary
Line 12: Line 12:
:inRange
:inRange


:;inRange : Flag - nil if the slot has no action or has an action to which range does not apply. 0 if the action is out of range, and 1 if the action is in range.
:;inRange : Flag - nil if the slot has no action or if there is no current target. 0 if the action is out of range, and 1 if the action is in range. Note that it always returns 1 if range does not apply to this action  or if you can't use the spell on the target.
 
=== Note ===
This always returns 1 when testing range from a macro.
 
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Action Functions|IsActionInRange]]
Anonymous user