fixed healcomm and libpredict not sharing same stop messages

fixed healcomm and libpredict not sharing same stop messages
This commit is contained in:
Meow
2026-02-20 04:38:05 +01:00
parent 1f3991d004
commit 9055dad52f
+4 -4
View File
@@ -252,7 +252,7 @@ end)
function libpredict:ParseComm(sender, msg)
local msgtype, target, heal, time, rank
if msg == "HealStop" or msg == "GrpHealstop" then
if msg == "HealStop" or msg == "Healstop" or msg == "GrpHealstop" then
msgtype = "Stop"
-- DEBUG: Log when HealStop received
if libpredict.debug then
@@ -1018,7 +1018,7 @@ libpredict.sender:SetScript("OnEvent", function()
if libpredict.debug then
DEFAULT_CHAT_FRAME:AddMessage("|cffff00ff[libpredict TX]|r Sending HealStop (via " .. event .. ") to group")
end
libpredict.sender:SendHealCommMsg("HealStop")
libpredict.sender:SendHealCommMsg("Healstop")
libpredict.sender.healing = nil
elseif libpredict.sender.resurrecting then
local target = this.current_cast_target or senttarget or spell_queue[3]
@@ -1047,7 +1047,7 @@ libpredict.sender:SetScript("OnEvent", function()
if libpredict.debug then
DEFAULT_CHAT_FRAME:AddMessage("|cffff00ff[libpredict TX]|r Sending HealStop to group (SPELL_FAILED_SELF)")
end
libpredict.sender:SendHealCommMsg("HealStop")
libpredict.sender:SendHealCommMsg("Healstop")
libpredict.sender.healing = nil
elseif libpredict.sender.resurrecting then
local target = this.current_cast_target or senttarget or spell_queue[3]
@@ -1188,4 +1188,4 @@ _G.SlashCmdList.HOTDEBUG = function()
DEFAULT_CHAT_FRAME:AddMessage("Tip: /libpredict.debug = true for verbose logging")
end
pfUI.api.libpredict = libpredict
pfUI.api.libpredict = libpredict