9 lines
		
	
	
		
			553 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			553 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
---@diagnostic disable: missing-return, lowercase-global
 | 
						|
---@meta
 | 
						|
 | 
						|
---@param unit string
 | 
						|
---@param name string
 | 
						|
---@return 1nil inRange
 | 
						|
---Returns whether a party/raid member is nearby. The range check used by this function isn't directly based on the player's abilities (which may have varying ranges); it's fixed by Blizzard at a distance of around 40 yards (which encompasses many common healing spells and other abilities often used on raid members). Also returns nil for units outside the player's area of view.
 | 
						|
function UnitInRange(unit, name) end
 |