Formula

CommonFun.calcBuff_4814

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