Fix resurrection stop prediction cleanup
This commit is contained in:
+4
-2
@@ -128,16 +128,18 @@ function libpredict:ParseChatMessage(sender, msg, comm)
|
|||||||
msgtype, target, heal, time = libpredict:ParseComm(sender, msg)
|
msgtype, target, heal, time = libpredict:ParseComm(sender, msg)
|
||||||
elseif comm == "CTRA" then
|
elseif comm == "CTRA" then
|
||||||
local _, _, cmd, ctratarget = string.find(msg, "(%a+)%s?([^#]*)")
|
local _, _, cmd, ctratarget = string.find(msg, "(%a+)%s?([^#]*)")
|
||||||
if cmd and ctratarget and cmd == "RES" and ctratarget ~= "" and ctratarget ~= UNKNOWN then
|
if cmd == "RES" and ctratarget and ctratarget ~= "" and ctratarget ~= UNKNOWN then
|
||||||
msgtype = "Ress"
|
msgtype = "Ress"
|
||||||
target = ctratarget
|
target = ctratarget
|
||||||
|
elseif cmd == "RESNO" then
|
||||||
|
msgtype = "RessStop"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if msgtype == "Stop" and sender then
|
if msgtype == "Stop" and sender then
|
||||||
libpredict:HealStop(sender)
|
libpredict:HealStop(sender)
|
||||||
return
|
return
|
||||||
elseif ( msg == "RessStop" or msg == "RESNO" ) and sender then
|
elseif msgtype == "RessStop" and sender then
|
||||||
libpredict:RessStop(sender)
|
libpredict:RessStop(sender)
|
||||||
return
|
return
|
||||||
elseif msgtype == "Delay" and time then
|
elseif msgtype == "Delay" and time then
|
||||||
|
|||||||
Reference in New Issue
Block a user