I haven't tried this myself yet and I might be wrong about how it works, but I have been told that leaving during a game does not count towards your deaths. I think that's a bad idea because it encourages leaving during a fight when you notice you're about to die. This is a problem because you don't drop your items when dying and (I think) your opponent will not receive the health boost.
So my suggestion is to handle leaveing players like this:
If you leave during a game, it counts as a death.
In game it's handled as a regular death, so you drop all your items and if someone hit you shortly before, he will get the kill and the regeneration.
So my suggestion is to handle leaveing players like this:
If you leave during a game, it counts as a death.
In game it's handled as a regular death, so you drop all your items and if someone hit you shortly before, he will get the kill and the regeneration.