Returns whether the player's target is in range of an action.
Returns whether the player's target is in range of an action.
Signature:
Code
inRange = IsActionInRange(slot [, "unit"])
Arguments:
slot - An action bar slot (number, actionID)
unit - A unit to target with the action (string, unitID)
Returns:
inRange - 1 if the player's target is in range for the action or 0 if out of range; nil if the action cannot be used on the player's target regardless of range (number)