Clear stale prediction cast targets
This commit is contained in:
@@ -512,6 +512,7 @@ libpredict.sender:SetScript("OnEvent", function()
|
||||
libpredict.sender:SendResCommMsg("RESNO " .. target)
|
||||
libpredict.sender.resurrecting = nil
|
||||
end
|
||||
senttarget = nil
|
||||
elseif event == "SPELLCAST_DELAYED" then
|
||||
if libpredict.sender.healing then
|
||||
libpredict:HealDelay(player, arg1)
|
||||
@@ -520,6 +521,7 @@ libpredict.sender:SetScript("OnEvent", function()
|
||||
elseif strfind(event, "SPELLCAST_STOP", 1) then
|
||||
if strfind(event, "UNIT_", 1) and arg1 ~= "player" then return end
|
||||
libpredict:HealStop(player)
|
||||
senttarget = nil
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user