diff --git a/Conditionals.lua b/Conditionals.lua index ab4974c..3010e6b 100644 --- a/Conditionals.lua +++ b/Conditionals.lua @@ -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