From 3fa7a775f6504914a39b72c53c70bc7b2fe34d27 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Mar 2025 19:34:05 +0100 Subject: [PATCH] libpredict: cache next target while regrowth is pending --- libs/libpredict.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index cb22dcb2..d8efd015 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -441,6 +441,7 @@ libpredict.sender:SetScript("OnUpdate", function() if this.regrowth_timer and GetTime() > this.regrowth_timer then libpredict:Hot(player, this.regrowth_target, "Regr", 21) libpredict.sender:SendHealCommMsg("Regr/"..this.regrowth_target.."/21/") + this.regrowth_target = this.regrowth_target_next this.regrowth_timer = nil end end) @@ -515,7 +516,11 @@ libpredict.sender:SetScript("OnEvent", function() local casttime = time if spell == REGROWTH then - this.regrowth_target = spell_queue[3] + if this.regrowth_timer then + this.regrowth_target_next = spell_queue[3] + else + this.regrowth_target = spell_queue[3] + end end if spell == PRAYER_OF_HEALING then