Prat 3.0

Prat 3.0

26M Downloads

"GetSpellInfo" Function no longer exists

F-Lambda opened this issue ยท 2 comments

commented

Describe the bug
Received the following error after taking a new talent and it tried to say the newly learned spell in chat.

Message: Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua:641: attempt to call global 'GetSpellInfo' (a nil value)
Time: Tue Aug 13 16:30:58 2024
Count: 1
Stack: Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua:641: attempt to call global 'GetSpellInfo' (a nil value)
[string "=[C]"]: in function `GetSpellInfo'
[string "@Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua"]:641: in function <Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua:639>
[string "@Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua"]:678: in function <Interface/AddOns/Prat-3.0/modules/LinkInfoIcons.lua:676>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `gsub'
[string "@Interface/AddOns/Prat-3.0/services/patterns.lua"]:197: in function `MatchPatterns'
[string "@Interface/AddOns/Prat-3.0/addon/addon.lua"]:698: in function <Interface/AddOns/Prat-3.0/addon/addon.lua:616>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:3324: in function `ChatFrame_OnEvent'
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/FloatingChatFrame.lua"]:94: in function <...lizzard_ChatFrameBase/Mainline/FloatingChatFrame.lua:93>

Locals: 
commented

Also getting this whenever I work on my talent tree:

25x Prat-3.0-3.9.57/modules/LinkInfoIcons.lua:641: attempt to call global 'GetSpellInfo' (a nil value) [string "@Prat-3.0-3.9.57/modules/LinkInfoIcons.lua"]:641: in function <Prat-3.0/modules/LinkInfoIcons.lua:639> [string "@Prat-3.0-3.9.57/modules/LinkInfoIcons.lua"]:678: in function <Prat-3.0/modules/LinkInfoIcons.lua:676> [string "=(tail call)"]: ? [string "=[C]"]: in function gsub'
[string "@Prat-3.0-3.9.57/services/patterns.lua"]:197: in function MatchPatterns' [string "@Prat-3.0-3.9.57/addon/addon.lua"]:698: in function <Prat-3.0/addon/addon.lua:616> [string "=(tail call)"]: ? [string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:3324: in function ChatFrame_OnEvent'
[string "@Blizzard_ChatFrameBase/Mainline/FloatingChatFrame.lua"]:94: in function <...lizzard_ChatFrameBase/Mainline/FloatingChatFrame.lua:93>

Locals:
link = "|cff71d5ff|Hspell:451495:0|h[Courageous Impulse]|h|r"
spellID = 451495
(*temporary) = 3
(*temporary) = nil
(*temporary) = 451495
(*temporary) = "attempt to call global 'GetSpellInfo' (a nil value)"
module =

{
baseName = "Prat-3.0"
modules =
{
}
db =
{
}
defaultModuleLibraries =
{
}
enabledState = true
PL =
{
}
moduleName = "LinkInfoIcons"
defaultModuleState = true
name = "Prat_LinkInfoIcons"
orderedModules =
{
}
}
`

commented

I've added a fix for this into 3.9.58