I'd price the replacement batteries first. I'd also look at 3rd party aftermarket replacements, visiting a Batteries Plus store if there's one near you.
The Makita cordless drill I used to use worked fine, and I had it for a a number of years. I never had a mechanical or feature complaint about it. Then the batteries started failing (I had 2 bat packs), and I went shopping for replacements. Well, it turned out that it would cost me more to replace one battery pack than to buy a mid-to-low-priced complete drill set, and the set included 2 battery packs.
That's when I went out and priced batteries first. I ended up with a DeWalt cordless drill, which I bought in a set with 2 battery packs and a charger. I've probably had it for a decade now, and I can still get 3rd-party batteries for it, which are somewhat reasonably priced (below drill-set cost). The main down side is the batteries are NiCd, not NiMH or Li-ion, so that's probably going to raise the cost next time I have to replace the batteries. That might be the time to replace the whole drill set with something that has more modern battery technology. However, I'm still going to do it by pricing the batteries first.
If you use a hammer drill a lot, then it's probably worth getting, otherwise I wouldn't. Personally, I wouldn't buy a cordless hammer drill, only corded. As rarely as I use one (last time I just borrowed one), I can manage the cord inconvenience, as compared to having the batteries die and have to be replaced (costly).