Retain State on Death

I'm in need of a plugin that will allow a battler to keep certain states even if they're knocked out. Specifically, I'm using a state to seal a skill type for a certain battler so that they can only use a skill of that type once per battle, and I want to avoid them being able to use those skills again if they die and are revived.

I was hoping to use Yami's plugin that has the same name as the title, but every link I find to it is this one (http://yed.yami.moe/yed-retain-state-on-death/) and it just leads to a blank page for me. I'm not using any Yanfly plugins and would rather avoid them since I'd prefer that the plugin be standalone rather than require another core plugin.

Any help would be appreciated, especially if someone could just find me a working link to Yami's plugin or send me it themselves.
You can do that with Yanfly State Categories with the notetag <Category: Bypass Death Removal>
I did say I wanted to avoid Yanfly plugins as I would like the plugin to be standalone and not rely on another core plugin.
Oh, my bad.
Here's Yami script: https://github.com/suppayami/yami-e...etainStatesOnDeath/YED_RetainStatesOnDeath.js
Thanks a bunch!

Original thread: https://forums.rpgmakerweb.com/threads/retain-state-on-death.109581/