diff --git a/Core.lua b/Core.lua index 9ffbf81..166622d 100644 --- a/Core.lua +++ b/Core.lua @@ -5901,11 +5901,9 @@ function CleveRoids.Frame:SPELL_QUEUE_EVENT() queueType = eventCode, queueTime = GetTime() } - if GetSpellRecField then - local name = C_Spell.GetSpellName(spellId) - if name then - CleveRoids.queuedSpell.spellName = name - end + local name = C_Spell.GetSpellName(spellId) + if name then + CleveRoids.queuedSpell.spellName = name end -- BUGFIX: Update casting state when spell is queued (for [casting] conditional) if CleveRoids.UpdateCastingState then @@ -5942,11 +5940,9 @@ function CleveRoids.Frame:SPELL_CAST_EVENT() targetGuid = targetGuid, timestamp = GetTime() } - if GetSpellRecField then - local name = C_Spell.GetSpellName(spellId) - if name then - CleveRoids.lastCastSpell.spellName = name - end + local name = C_Spell.GetSpellName(spellId) + if name then + CleveRoids.lastCastSpell.spellName = name end -- Track pending cast for SPELL_GO correlation (reactive ability detection) diff --git a/Utility.lua b/Utility.lua index 57e5ae3..e3f1f80 100644 --- a/Utility.lua +++ b/Utility.lua @@ -247,7 +247,6 @@ function CleveRoids.GetChannelDurationFromTooltipByID(spellID) end -- Fallback: resolve name and scan tooltip - if not GetSpellRecField then return nil end local spellName = C_Spell.GetSpellName(spellID) if not spellName then return nil end return CleveRoids.GetSpellDurationFromTooltip(spellName) @@ -7105,10 +7104,7 @@ function CleveRoids.ApplySetBonusModifier(spellID, baseDuration) local modifiedDuration = modifier.modifier(baseDuration) if modifiedDuration ~= baseDuration and CleveRoids.debug then - local spellName = "Unknown" - if GetSpellRecField then - spellName = C_Spell.GetSpellName(spellID) or spellName - end + local spellName = C_Spell.GetSpellName(spellID) or "Unknown" DEFAULT_CHAT_FRAME:AddMessage( string.format("|cff00ffff[Set Bonus Modifier]|r %s (ID:%d): %.1fs -> %.1fs (%d/%d pieces)", spellName, spellID, baseDuration, modifiedDuration, @@ -7585,7 +7581,7 @@ local function GetSpellSchool(spellName, spellID) end -- If we only have spellID but no name, try to get name from GetSpellRecField - if spellID and not spellName and GetSpellRecField then + if spellID and not spellName then spellName = C_Spell.GetSpellName(spellID) end