Hmm, none of that seemed to help with the issue I was having unfortunately.
I did however take some time and rewrote most of the two functions. I found a solution that I feel may be problematic later on, but it seems to work. No backtracking of the health bar at all from what I can see. It seems to have fixed the stamina bug as well.
Should be the same link but just in case:
It's been updated!. Again, thank you for responding!