From 934600c2ea81390aa8d67bb5781cb38da7475c42 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Mar 2025 18:48:25 +0100 Subject: [PATCH] libpredict: save regrowth target on spellcast start --- libs/libpredict.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index 92855b53..7c4cb57b 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -469,6 +469,10 @@ libpredict.sender:SetScript("OnEvent", function() local amount = cache[spell_queue[2]][1] local casttime = time + if spell == "Regrowth" then + this.regrowth_target = spell_queue[3] + end + if spell == PRAYER_OF_HEALING then target = sender @@ -536,7 +540,6 @@ libpredict.sender:SetScript("OnEvent", function() libpredict:Hot(player, spell_queue[3], "Renew", renewDuration) libpredict.sender:SendHealCommMsg("Renew/"..spell_queue[3].."/"..renewDuration.."/") elseif spell_queue[1] == "Regrowth" then - this.regrowth_target = spell_queue[3] this.regrowth_timer = GetTime() + 0.3 end else -- tbc