Unless I'm mistaken, direct kills (mines) are credited to the correct ship but indirect kills (impact) aren't. Regardless the kill needs to be awarded to the last hit.
If a ship is mined and then ram killed, the ram was the killing blow and deserves the kill. Ship A shoots three mines and ship B shoots one mine and gets the kill, ship B gets the kill. Otherwise it becomes too confusing and easy to contest kills.