This is the core DnD mechanics. What you want is DOS III.

And the thing is, Larian has already made it much easier for spells and melee attacks to hit with broken homebrew.