MZ Bug with an enemy having multiple actions

I get the following error message with an enemy that has 3 actions instead of the usual 1.
The bug pops up seemingly randomly, sometimes at the first round, other times at round 2 or 3.
Any clue what might be happening there?

bugmultiaction1.png


bugmultiaction2.png
You've tagged this MV but the error messages are for MZ plugins. Which are you using?
MZ. Corrected the tag.
Is it only with a specific enemy/troop?
Yes but it's also the only enemy/troop with 3 actions instead of the usual 1.
If you give a different enemy 3 actions instead of 1 do you get the same issue?
Yep, same. I'm using CTB (v1.14) with CoreEngine v1.60.

1650469754842.png
Sorry for double post but it seems using normal turn-based battle system (from the database) instead of CTB creates no glitch. So it seems the problem is with CTB.
If the problem disappears when CTB is deactivated then it's related to CTB, yes. However, does it occur with only CTB (and its minimum required plugins) active?

I'm not very familiar with the VisuStella library, but I notice there's an "AutoSkillTriggers" plugin in that traceback, so I'm wondering if the problem is that something is trying to force an action from a non-existent battler. Screenshot(s) of your Plugin Manager, showing all plugins you're using, might be helpful.

null (rather than undefined) makes me wonder if something has confused ID (starts at 1) with index (starts at 0), because index 0 of all database arrays is null.
Happens with this:

1650535152449.png


visu1.png


visu2.png
You could try to reproduce it in a new project as described here:
If you can't reproduce the problem in a new project, it might be something to do with the plugin parameters and/or notetags. You could try resetting all plugin parameters to their default values:
  1. Delete the plugin(s) from the Plugin Manager list;
  2. Save project to apply Plugin Manager changes;
  3. Add plugins back again.
Otherwise maybe hunt around for any script calls (including scripted notetags), maybe one of those is doing something to cause the problem.

Maybe someone who actually has the plugin will have a better answer. Hope you find a fix!

Original thread: https://forums.rpgmakerweb.com/threads/bug-with-an-enemy-having-multiple-actions.146932/