Issue with Estriol's "share pain" script

I've been trying to use this script http://www.rpgmakercentral.com/topic/8116-share-the-pain-state/
and i encountered quite some issues with it and if possible i would like to have them fixed cause it was going to be
the core mechanic on a character in my current project and ima have to awkwardly improvise if it can't be fixed.

Basically i've been trying this on an army of slimes and i encoutered 2 major issues. The first is that the slimes seems to be taking quite some damage but then afterwards regains some health as if nothing was, the second is that if damage results a lethal blow, the shared damage is completely ignored.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-estriols-share-pain-script.80376/