mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-30 15:40:51 +00:00
Clear cancelled resurrections announced over HealComm and CTRA
ParseChatMessage tested the raw message for "RessStop", which no HealComm message is, so ParseComm's Resurrection/stop/ result was never acted on. CTRA's RESNO was matched against the whole message, but it carries the target's name, and the CTRA parser only recognised RES. A cancelled rez from another player left the icon on the target's frame until they were revived. RessStop still keeps a rez whose cast landed and whose accept window is open.
This commit is contained in:
+3
-1
@@ -482,13 +482,15 @@ function libpredict:ParseChatMessage(sender, msg, comm)
|
||||
if cmd and ctratarget and cmd == "RES" and ctratarget ~= "" and ctratarget ~= UNKNOWN then
|
||||
msgtype = "Ress"
|
||||
target = ctratarget
|
||||
elseif cmd == "RESNO" then
|
||||
msgtype = "RessStop"
|
||||
end
|
||||
end
|
||||
|
||||
if msgtype == "Stop" and sender then
|
||||
libpredict:HealStop(sender)
|
||||
return
|
||||
elseif ( msg == "RessStop" or msg == "RESNO" ) and sender then
|
||||
elseif msgtype == "RessStop" and sender then
|
||||
libpredict:RessStop(sender)
|
||||
return
|
||||
elseif msgtype == "Delay" and time then
|
||||
|
||||
Reference in New Issue
Block a user