MV Yanfly Animated SV Enemies Glow when Revived

If a unit has the <Sideview Collapse> tag, dies, and is restored by removing the Knockout state and restoring HP, the unit remains glowy and semi-transparent as they look when performing a collapse.

I spent a good deal of time trying to ferret this out before by digging around in the core code and the plugin, but failed and ended up using a different technique. Now I'm up against a wall. I figure this must have been seen before, no?
Paste this into a text editor, save as a *.js file, include as a plugin.

Code:
Sprite_Enemy.prototype.revertToNormal = function() {
    this._shake = 0;
    this.blendMode = 0;
    this.opacity = 255;
    this.setBlendColor([0, 0, 0, 0]);
    if (this._svBattlerEnabled)
    {
        this._mainSprite.setBlendColor([0, 0, 0, 0]);
        this._mainSprite.blendMode=0;
    }
};
Paste this into a text editor, save as a *.js file, include as a plugin.

Code:
Sprite_Enemy.prototype.revertToNormal = function() {
    this._shake = 0;
    this.blendMode = 0;
    this.opacity = 255;
    this.setBlendColor([0, 0, 0, 0]);
    if (this._svBattlerEnabled)
    {
        this._mainSprite.setBlendColor([0, 0, 0, 0]);
        this._mainSprite.blendMode=0;
    }
};
No luck. Additionally, $gameTroop members don't seem to have a ._mainSprite member.
Edit: I see this isn't a method of Battler. I am not sure how to test the code directly from the console. What is the parent?
Edit 2: Nevermind, it started working once I started playing with the file some more. Shrug. Thank you!
I'm really not sure what the question is. This works in my testing. The _mainSprite comes from Yanfly's Animated SV Enemies.

I made a troop of 1 HP enemies that only revive each other. I killed 1, the other immediately revived it. With this plugin underneath the Animated Enemies in your plugin manager, the enemy sprite glows when collapsing and no longer glows when revived. I don't know why you'd need to do anything in the console.

Any time you add or change plugins, make sure you save your project and start a new playtest. Save games will keep the old code.
Yes, it is working now. I think I was editing my reply while you were drafting this message. Likely I just didn't save first and was overcomplicating my troubleshooting process.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-animated-sv-enemies-glow-when-revived.157743/