Formula

CommonFun.calcBuff_3251

function CommonFun.calcBuff_3251(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Attr = srcUser:GetProperty(CommonFun.GetAttrName(c))
  local A = math.floor(Attr / a * 1000) / 1000 + lv * b + d
  return A
end