Protect state has stopped working

My Protect state has stopped working. It was working happily for months, but now won't kick in for actor or enemy battlers. I've go no notetag modifiers on Protect.

I am using VisuStella plugins. By trial and error removals of them I've narrowed the cause down to something in Battle Core, but I cannot remove it as it is integral to my game. I've got the latest version.

Any general troubleshooting advice, or similar issues with Protect/Substitute?

EDIT:
I have offline backups every two weeks going back to July, but when I try all of them, they also don't work for Protect. The problem must have been going on longer than I thought.

I tried updating RPG Maker MZ to the latest version, 1.9.0. I also went through all my VisuStella plugins and updated them to the latest versions. Nothing worked.

SOLUTION: After exhaustive testing I have identified the cause. The Battle Core plugin has an <Target: Enemy or Ally> notetag which allows you to attack your own party. I applied this to the Attack skill so I could to slap the negative state off an ally. This was causing the problem. If I get rid of the <Target: Enemy or Ally> from the Attack skill the problem goes away. I'll report it to VisuStella.

OUTCOME: VisuStella fixed the Core Engine and Battle Core plugins within hours and Protect now works again.
Are you making backups of your project?
If so, do you have a backup where the protect was working?

It's very likely something small you changed and forgot you did.
The backup could probably help you narrow it down.
Maybe a notetag on a state or something like that.

If you don't have a backup, make one, then go to town resetting the Battle core and see if that makes any difference.
You can then restore everything via the backup.
Are you making backups of your project?
If so, do you have a backup where the protect was working?

It's very likely something small you changed and forgot you did.
The backup could probably help you narrow it down.
Maybe a notetag on a state or something like that.

If you don't have a backup, make one, then go to town resetting the Battle core and see if that makes any difference.
You can then restore everything via the backup.
All my backups have the same issue. I might have to compare each and every Battle Core setting against the VisuMZ_Sample_Game_Project, which does work.🙁
If you are talking about the substitute effect, I know that by default it is only triggered when an ally returns true to the "isDying()" method (and the hit is not "certain hit").

The "isDying()" threshold is 25% by default. Maybe something is changing it somewhere?

Code:
BattleManager.checkSubstitute = function(target) {
    return target.isDying() && !this._action.isCertainHit();
};

[...]

Game_BattlerBase.prototype.isDying = function() {
    return this.isAlive() && this._hp < this.mhp / 4;
};
The actors are showing the isDying stance and I can't find any code which would affect that threshold.

Original thread: https://forums.rpgmakerweb.com/threads/protect-state-has-stopped-working.181546/