From da35563a3546c02e481bc2cc5e26ca1ac552bbd3 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Tue, 19 Aug 2025 10:00:21 -0700 Subject: [PATCH] move fn --- curses.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/curses.lua b/curses.lua index a7a69c7..712f27e 100644 --- a/curses.lua +++ b/curses.lua @@ -205,6 +205,17 @@ function curses:ScanGuidForCurse(guid, curseSpellID) return nil end +function curses:GetLowercaseSpellName(spellName) + spellName = string.lower(spellName) + + -- handle faerie fire special case + if curses.isDruid and string.find(spellName, L["faerie fire"]) then + return L["faerie fire"] + end + + return spellName +end + Cursive:RegisterEvent("LEARNED_SPELL_IN_TAB", function() -- reload curses in case spell slots changed curses:LoadCurses() @@ -373,17 +384,6 @@ Cursive:RegisterEvent("CHAT_MSG_SPELL_AURA_GONE_OTHER", function(message) end ) -function curses:GetLowercaseSpellName(spellName) - spellName = string.lower(spellName) - - -- handle faerie fire special case - if curses.isDruid and string.find(spellName, L["faerie fire"]) then - return L["faerie fire"] - end - - return spellName -end - function curses:GetLastTickTime(curseData) local ticks = curses.trackedCurseIds[curseData.spellID].numTicks if not ticks then