From 86d91ef228ecf4a1555c6b32123da6ff60c64685 Mon Sep 17 00:00:00 2001 From: Anaximander Date: Mon, 3 Oct 2022 12:25:39 -0500 Subject: [PATCH] Add debugging for failure to cast spell --- BeStride.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BeStride.lua b/BeStride.lua index 640c582..092d339 100644 --- a/BeStride.lua +++ b/BeStride.lua @@ -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