Formula
CommonFun.calcBuff_5071
function CommonFun.calcBuff_5071(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Distance = targetUser:GetDisWithLineUser(19)
local time = targetUser:GetBuffPassedTime(165060)
local Num = targetUser:GetBuffLayer(163264_CHAIN_COUNT_:MAX_STACK_0)
if Distance < 1 then
Distance = 1
end
local MaxHp = targetUser:GetProperty("MaxHp")
local A = MaxHp * (0.01 * math.min(Distance * Distance * 0.4 - 0.8 * Distance + 2, 100) + 0.02 * Num) + 6000 * (Num - 1) * (1 + time / 4 + time * time * 0.08)
return -A
end