Possible Bug? TP changes to MAX upon death of that actor?

It seems that every time an actor dies (using SV Battling, turned off all Plugins) their TP get's changed to 100. Is this supposed to happen? Is there a way to stop this from happening?
The way it's built is that a character generates TP according to the percentage of HP they lose from an attack. I believe it was written incorrectly in the system plugins that count going from "X" amount of HP to dead is registering as "100% of HP damage taken, so generate 100 TP". I've fiddled around with a few settings but have to come up with a solution. If I find something that works without breaking the game, I'll let you know.
Sounds good. I'm also looking around the TP stuff in the system plugins to see if I can recognize anything (I don't know Javascript 😛 )

EDIT

I made a plugin that allows you to turn off TP Charge by damage as a part of it. This solves the problem.

Original thread: https://forums.rpgmakerweb.com/threads/possible-bug-tp-changes-to-max-upon-death-of-that-actor.47652/