libpredict: save regrowth target on spellcast start

This commit is contained in:
shagu
2025-03-28 18:48:25 +01:00
parent 5113ff9c74
commit 934600c2ea
+4 -1
View File
@@ -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