mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix parsing spells like faerie fire (feral)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user