Skip to content

Commit

Permalink
Add debugging for failure to cast spell
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaximander committed Oct 3, 2022
1 parent 866e017 commit 86d91ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BeStride.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,11 @@ function BeStride:ChatCommand(input)
end
end

function BeStride:SpellToName(spellID)
local name, rank, icon, castTime, minRange, maxRange, spellID = GetSpellInfo(spellID)

function BeStride:SpellToName(id)
local name, rank, icon, castTime, minRange, maxRange, spellId = GetSpellInfo(id)
if not name then
print("Unable to cast spell with spell Id:" .. id)
end
return name
end

Expand Down

0 comments on commit 86d91ef

Please sign in to comment.