read spell rank via C_Spell.GetSpellSubtext

The rank string comes from the spell subtext ("Rank N"), which ClassicAPI's
C_Spell.GetSpellSubtext returns directly -- so drop nampower's
GetSpellRecField(spellId, "rank") here. The existing "Rank " gsub parse is
unchanged.
This commit is contained in:
Brues
2026-07-25 00:53:55 -05:00
parent 4b1ba99b4f
commit a6cf157518
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -1125,7 +1125,7 @@ if hasNampower then
-- Rank aus spellId ermitteln
local rankNum = 0
local rankString = GetSpellRecField(spellId, "rank")
local rankString = C_Spell.GetSpellSubtext(spellId)
if rankString and rankString ~= "" then
rankNum = tonumber((string.gsub(rankString, "Rank ", ""))) or 0
end