Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Support down ranking of spells in Classic #297

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Modules/ClickCastings/ClickCastings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 and subtext ~= "" then
spellName = spellName .. "(" .. subtext .. ")"
end
end

local condition = ""
if not F:IsSoulstone(spellName) then
condition = F:IsResurrectionForDead(spellName) and ",dead" or ",nodead"
Expand Down Expand Up @@ -1729,4 +1736,4 @@ function F:UpdateClickCastingProfileLabel()
if loaded then
UpdateCurrentText(Cell.vars.clickCastings["useCommon"])
end
end
end