Himeworks Shapeshift: Revert on KO?

Hello. This has been a problem I've been having with this script for a while and had little success in finding a solution. The creator of the script hasn't gotten back to me after asking a similar question a couple of months ago.

My plight is this.
I have been using Tsukihime's Shapeshift script for a rather personal project for a group of friends. One of it's features is Transformations. They work perfectly in function and even revert under the right circumstances (3 turns. Taken enough damage. Etc) but the one thing i've been unable to figure out is how to make the Transformations revert upon being K.O'ed

See screenshots enclosed
Kd1uY7.jpg


To remedy this problem i've had to make the transformations resist K.O. Which solves the problem but creates another that they might be a bit OP.
Moved to: RGSSx Script Support

Please edit your opening post to include a link to the web page where you got the script, that way if anyone needs to check it before helping you, they don't have to go hunting.
Oh pardon me. Sorry i'm new to this particular forum so i wasn't sure where everything was meant to go...
As for the script.

http://himeworks.com/2013/09/effect-shapeshift/

It's this one in particular

Original thread: https://forums.rpgmakerweb.com/threads/himeworks-shapeshift-revert-on-ko.89931/