This commit is contained in:
2024-11-07 23:12:37 +01:00
parent a67a1d8f40
commit f7c91862a0
3089 changed files with 18209 additions and 0 deletions

17
Meta/api/GetSpellInfo.lua Normal file
View File

@@ -0,0 +1,17 @@
---@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