mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
prediction: abort on invalid values
This commit is contained in:
@@ -78,6 +78,10 @@ pfUI:RegisterModule("prediction", function ()
|
||||
end
|
||||
|
||||
function pfUI.prediction:Heal(sender, target, amount, duration)
|
||||
if not sender or not target or not amount or not duration then
|
||||
return
|
||||
end
|
||||
|
||||
local timeout = duration/1000 + GetTime()
|
||||
heals[target] = heals[target] or {}
|
||||
heals[target][sender] = { amount, timeout }
|
||||
|
||||
Reference in New Issue
Block a user