fix parsing spells like faerie fire (feral)

This commit is contained in:
Jrc13245
2025-12-14 08:39:21 -05:00
parent 9f5a379a3b
commit 1b1854248e
+5
View File
@@ -109,6 +109,11 @@ end
-- Get cached spell IDs for a spell name
local function GetSpellIDsForName(spellName)
BuildSpellNameCache()
-- Strip rank from input spell name to match cache keys
-- This handles cases like "Faerie Fire (Feral)(Rank 4)" -> "Faerie Fire (Feral)"
if spellName then
spellName = string.gsub(spellName, "%s*%(%s*Rank%s+%d+%s*%)", "")
end
return _spellNameToIDs[spellName]
end