Formula

CommonFun.calcBuff_8350

function CommonFun.calcBuff_8350(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
  local RefineLv = srcUser:GetEquipedRefineLv(8)
  if 6 <= RefineLv and RefineLv < 8 then
    A = a
  elseif 8 <= RefineLv and RefineLv < 10 then
    A = a + b
  elseif 10 <= RefineLv and RefineLv < 12 then
    A = a + b + c
  elseif 12 <= RefineLv then
    A = a + b + c + d
  end
  return A
end