Formula

CommonFun.calcBuff_7140

function CommonFun.calcBuff_7140(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 = a
  if 119 <= Str then
    A = A + b
  end
  if 119 <= Int then
    A = A + b
  end
  if 119 <= Dex then
    A = A + b
  end
  if 119 <= Agi then
    A = A + b
  end
  if 119 <= Vit then
    A = A + b
  end
  if 119 <= Luk then
    A = A + b
  end
  return A
end