libpredict: add fallback target to self

This commit is contained in:
shagu
2025-03-28 21:35:01 +01:00
parent 6546accaf3
commit 925654fe09
+5 -2
View File
@@ -439,8 +439,11 @@ end
libpredict.sender:SetScript("OnUpdate", function()
-- trigger delayed regrowth timers
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/")
local target = this.regrowth_target or player
local duration = 21
libpredict:Hot(player, target, "Regr", duration)
libpredict.sender:SendHealCommMsg("Regr/"..target.."/"..duration.."/")
this.regrowth_target = this.regrowth_target_next
this.regrowth_timer = nil
end