Bug Again

It happened again, something that I can't sleep because I think about it, this happened in the middle of the battle, please anyone who can help, so I can sleep again... :barf:
:dizzy:;_;;_;;_;;_;
Does it happen when something uses an action?
Does it happen when something uses an action?
yes that's right, it happens when the enemy attacks the actor in the middle of battle.
That error message tells us that something tries to call the slice function on targets, but that isn't there. targets itself is there, or we would instead get a message like targets is undefined. Slice itself is a standard array function, so apparently something expects targets to be an array. However it isn't. Maybe it got overwritten.

It could potentially be a plugin incompability. Are you using plugins other the ones from yanfly? Are your yanfly ones in the correct order?

Or maybe there is a problem with some javascript code (lunatic mode notetags) you use? Try checking the notetags on any skill the enemy uses and any states that enemy has.
That error message tells us that something tries to call the slice function on targets, but that isn't there. targets itself is there, or we would instead get a message like targets is undefined. Slice itself is a standard array function, so apparently something expects targets to be an array. However it isn't. Maybe it got overwritten.

It could potentially be a plugin incompability. Are you using plugins other the ones from yanfly? Are your yanfly ones in the correct order?

Or maybe there is a problem with some javascript code (lunatic mode notetags) you use? Try checking the notetags on any skill the enemy uses and any states that enemy has.
That's right, everything makes sense, I'll try to revise it again.
thanks bro

Original thread: https://forums.rpgmakerweb.com/threads/bug-again.165744/