From 6a7710fdada5f1c97d3daafbeac84edd7775de47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=B6ing?= Date: Sat, 23 Nov 2024 01:02:08 +0100 Subject: [PATCH 1/2] [feature] Support down ranking of spells in Classic --- Modules/ClickCastings/ClickCastings.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Modules/ClickCastings/ClickCastings.lua b/Modules/ClickCastings/ClickCastings.lua index 6cb12daa..4ddcf44a 100644 --- a/Modules/ClickCastings/ClickCastings.lua +++ b/Modules/ClickCastings/ClickCastings.lua @@ -529,6 +529,13 @@ local function ApplyClickCastings(b) spellName = spellName .. "(" .. (subtext or EXPANSION_NAME8) .. ")" end + if Cell.isVanilla then + local subtext = C_Spell.GetSpellSubtext(t[3]) -- Get spell rank + if subtext then + spellName = spellName .. "(" .. subtext .. ")" + end + end + local condition = "" if not F:IsSoulstone(spellName) then condition = F:IsResurrectionForDead(spellName) and ",dead" or ",nodead" @@ -1729,4 +1736,4 @@ function F:UpdateClickCastingProfileLabel() if loaded then UpdateCurrentText(Cell.vars.clickCastings["useCommon"]) end -end \ No newline at end of file +end From bb95518bbaedafb906e3649a69a3f57412a212e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=B6ing?= Date: Sat, 23 Nov 2024 11:31:25 +0100 Subject: [PATCH 2/2] Update ClickCastings.lua --- Modules/ClickCastings/ClickCastings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/ClickCastings/ClickCastings.lua b/Modules/ClickCastings/ClickCastings.lua index 4ddcf44a..feb8d434 100644 --- a/Modules/ClickCastings/ClickCastings.lua +++ b/Modules/ClickCastings/ClickCastings.lua @@ -531,7 +531,7 @@ local function ApplyClickCastings(b) if Cell.isVanilla then local subtext = C_Spell.GetSpellSubtext(t[3]) -- Get spell rank - if subtext then + if subtext and subtext ~= "" then spellName = spellName .. "(" .. subtext .. ")" end end