API SpellCanTargetUnit

Checks if the spell awaiting target selection can be cast on a specified unit. canTarget = SpellCanTargetUnit(unitId)

Arguments

 * unitId : (UnitId) - The unit to check.

Returns

 * canTarget : - Whether the spell can target the given unit.

Details

 * This will check for range, but not for LOS.