string.find fix - missing parameters, thanks to jrc13245

string.find fix - missing parameters, thanks to jrc13245
This commit is contained in:
Meow
2026-02-16 05:52:42 +01:00
parent f7bcad6266
commit 3cf64ceffd
+1 -1
View File
@@ -949,7 +949,7 @@ libpredict.sender:SetScript("OnEvent", function()
if spell == REGROWTH then
-- Extract rank from spell_queue[2] which contains "spell + rank"
local fullSpell = spell_queue[2]
local rankStr = fullSpell and string.find(fullSpell, "Rank (%d+)") or nil
local _, _, rankStr = fullSpell and string.find(fullSpell, "Rank (%d+)")
local rankNum = rankStr and tonumber(rankStr) or nil
if this.regrowth_timer then