Formula

CommonFun.calcBuff_7630

function CommonFun.calcBuff_7630(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Str = srcUser:GetProperty("Str")
  local Int = srcUser:GetProperty("Int")
  local Dex = srcUser:GetProperty("Dex")
  local Agi = srcUser:GetProperty("Agi")
  local Vit = srcUser:GetProperty("Vit")
  local Luk = srcUser:GetProperty("Luk")
  local A = (math.floor(Str / a) * b + math.floor(Dex / a) * b + math.floor(Int / a) * b + d) / 100
  return A
end