MZ YEP Instant Cast causing next battle to freeze

I've run into a problem with the YEP Instant Cast plugin in MZ where defeating an enemy with an instant skill makes the next battle freeze without loading its input menus. See screenshot below of a frozen battle:
Screenshot 2023-08-01 at 20.11.52.png

In this example, I set up a new project with only the Instant Cast plugin and added an <Instant> note tag to the default attack. I then started a battle and attacked on my first turn to knock the enemy out in one hit. This processed without any problems. However, the next battle I started was frozen and did not allow for any input. Demo project here, if it helps.

I found a couple of older threads about this same issue (here and here) without any solutions. If anyone has any idea how to fix this, I would really appreciate it! Thanks!

EDIT: I've tried the same project with FOSSIL and the issue was still present. I also made a project in MV with the same setup, and ran into the same issue there. Based on this, I don't believe the problem is due to compatibility issues, but with the plugin itself.
There is always a chance that a plugin written for MV will cause problems in MZ due to differences in the core code.

You might be able to find someone willing to try to update it for you, but you've got a few things working against you:
  • It's a paid plugin. You'd both need a license.
  • It was apparently never ported to MZ outside of VisuStella's STB plugin.
  • The plugin's TOS would need to permit 3rd party ports to other engines.
It's listed as compatible with FOSSIL
It's listed as compatible with FOSSIL
While fossil is an amazing plugin, ig the plugins that are compatible with it aren't always going to work as intended.
While fossil is an amazing plugin, ig the plugins that are compatible with it aren't always going to work as intended.
That's true, but more salient to this post there's no evidence that the OP is actually using FOSSIL. Just by reading the first post, they're trying to use a complex MV plugin in MZ, which is almost guaranteed not to work.

That's why @AquaEcho suggested it.

Are you saying you have personal evidence that Instant Cast in fact does not work correctly when using it with Project FOSSIL?
That's true, but more salient to this post there's no evidence that the OP is actually using FOSSIL. Just by reading the first post, they're trying to use a complex MV plugin in MZ, which is almost guaranteed not to work.

That's why @AquaEcho suggested it.

Are you saying you have personal evidence that Instant Cast in fact does not work correctly when using it with Project FOSSIL?
I've tried it with FOSSIL as well and the issue is still present. I also made a similar test project in MV (same setup, <Instant> note tag on the default attack, one-hit KO) and ran into the same issue there. I've edited my original post with this information.

Based on all of this, I don't think it's an issue of compatibility, but with the plugin itself.
Okay. I was able to reproduce the issue, and also find a number of other threads on various sites about it.

It's a really simple fix - paste the below into a text editor and include as a plugin.
Code:
var TUR_endBattle = BattleManager.endBattle;
BattleManager.endBattle = function(result)
{
    this._instantCasting=false;
    TUR_endBattle.call(this, result);
};
Okay. I was able to reproduce the issue, and also find a number of other threads on various sites about it.

It's a really simple fix - paste the below into a text editor and include as a plugin.
Code:
var TUR_endBattle = BattleManager.endBattle;
BattleManager.endBattle = function(result)
{
    this._instantCasting=false;
    TUR_endBattle.call(this, result);
};
That worked, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/yep-instant-cast-causing-next-battle-to-freeze.159945/