diff --git a/functions/api2.lua b/functions/api2.lua index a89fe393..c2acbddc 100644 --- a/functions/api2.lua +++ b/functions/api2.lua @@ -55,7 +55,7 @@ local getSpellObject = function(playerObject, spellId, isLiteral) elseif (parameterType == "number") then --passed a number but with literal off, transform the spellId into a spell name - local spellName = GetSpellInfo(spellid) + local spellName = GetSpellInfo(spellId) if (spellName) then passedSpellName = spellName:lower() end