From 1b1854248e1d43d0fc04b4745c1e41a58bcaf2a3 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sun, 14 Dec 2025 08:39:21 -0500 Subject: [PATCH] fix parsing spells like faerie fire (feral) --- Conditionals.lua | 5 +++++ 1 file changed, 5 insertions(+) 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