17 lines
		
	
	
		
			752 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			752 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
---@diagnostic disable: missing-return, lowercase-global
 | 
						|
 | 
						|
---@param index number 
 | 
						|
---@param bookType spell 
 | 
						|
---@param pet  
 | 
						|
---@param spell  
 | 
						|
---@param name string 
 | 
						|
---@param id number 
 | 
						|
---@return string name 
 | 
						|
---@return string rank 
 | 
						|
---@return string icon 
 | 
						|
---@return number castingTime 
 | 
						|
---@return number minRange 
 | 
						|
---@return number maxRange 
 | 
						|
---@return number spellID 
 | 
						|
---Returns information about a spell. As of 4.1, this function should always return valid data for a spell if the spell is in the player's spellbook (by name or index) or if requested by spell id. When in doubt, if the player does not have the spell in their spellbook, use the numeric id to access its information.
 | 
						|
function GetSpellInfo(index, bookType, pet, spell, name, id) end |