HIME Enemy Reinforcements TypeError

Hello.

I use Tsukihime's Enemy Reinforcements plugin for a boss that periodically spawns minions throughout the fight. However, when the minions are spawned, I will sometimes get a TypeError reading "cannot read property _battler of null"

Here is a screenshot of the console:
2zp8ozk.png


There appears to be some sort of issue with Yanfly's Animated Sideview Enemies and Visual State Effects. This error only appears sometimes when testing and the console seems to indicate a problem with updating sprite animations, presumably when the new minions are supposed to be appear. I can't make sense of it, though. Any thoughts?
Are you testing via Battle Test or are you clicking the Test Play button and doing an actual test?

A large number of battle plugins will only work when you test play, because the way the database (and therefore the plugin variables) are loaded is different for test play and battle test.

Do a proper test play and see if the error still occurs.
Are you testing via Battle Test or are you clicking the Test Play button and doing an actual test?

A large number of battle plugins will only work when you test play, because the way the database (and therefore the plugin variables) are loaded is different for test play and battle test.

Do a proper test play and see if the error still occurs.

Yes, I am doing an actual play test, I never use the Battle Test feature in the database. I've done some more testing on the issue, but I still can't seem to narrow the problem down. Since the problem seems to be coming from sprite animations and visual state effects, I thought maybe the problem was that certain state animations on actors or enemies were the culprit, but there doesn't seem to be any clear cut pattern I can nail down. Sometimes I get the error and sometimes I don't.

Original thread: https://forums.rpgmakerweb.com/threads/hime-enemy-reinforcements-typeerror.107409/