prediction: abort on invalid values

This commit is contained in:
shagu
2018-08-19 12:30:55 +02:00
parent fe1b7cd902
commit b5c73145df
+4
View File
@@ -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 }