mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +00:00
prediction: add missing sender to ress parameters
This commit is contained in:
@@ -67,7 +67,7 @@ pfUI:RegisterModule("prediction", function ()
|
|||||||
|
|
||||||
local _, _, evtype, target = string.find(msg, '(Resurrection)/(%a+)/(start)/')
|
local _, _, evtype, target = string.find(msg, '(Resurrection)/(%a+)/(start)/')
|
||||||
if evtype and target then
|
if evtype and target then
|
||||||
pfUI.prediction:Ress(target)
|
pfUI.prediction:Ress(sender, target)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -125,7 +125,7 @@ pfUI:RegisterModule("prediction", function ()
|
|||||||
return sumheal
|
return sumheal
|
||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.prediction:Ress(target)
|
function pfUI.prediction:Ress(sender, target)
|
||||||
ress[target] = ress[target] or {}
|
ress[target] = ress[target] or {}
|
||||||
ress[target][sender] = true
|
ress[target][sender] = true
|
||||||
pfUI.prediction:TriggerUpdate(target)
|
pfUI.prediction:TriggerUpdate(target)
|
||||||
|
|||||||
Reference in New Issue
Block a user