'Cannot read property call of undefined' during battle (action sequence problem)

So I keep getting this error when it's the enemy's turn to attack in battle, I can see the problem is to do with when the enemy steps forward during the action sequence (Yanfly's action sequence plugin used) but I can't work out why! If anyone knows how to fix it I'd be super grateful! ^^


errorlog.png


Here's the notetag section for attack I have as well if the issue's in something I've done there! ...


<Timed Attack: arrows>


Command Amount: 3


Randomize Commands?: up, down, up


Frames: 80


Success Power: 1


Fail Power: 0


<End Timed Attack>


Motion Action: 5


Chain Action: 20:1:60


<setup action>


display action


if user.attackMotion() !== 'missile'


camera focus: target


zoom: 130%, 20


wait: 60


camera offset: right, 50


else


camera focus: user


zoom: 180%, 20


wait: 20


camera focus: target


zoom: 130%, 20


camera offset: right, 50


end


immortal: targets, true


</setup action>


<target action>


perform start


wait for movement


motion attack: user


wait: 10


action animation: target


wait for animation


action effect


wait for animation


wait for movement


wait: 7


</target action>
Please post a screenshot of your plugin manager. Very often such errors are caused by the wrong order of the plugins, but it's rather unlikely that an action sequence can cause this (unless you dig really deep into the lunatic mode)
Please post a screenshot of your plugin manager. Very often such errors are caused by the wrong order of the plugins, but it's rather unlikely that an action sequence can cause this (unless you dig really deep into the lunatic mode)



Thank you for your help! 🙂  Although I'm not sure if it can be a plugin conflict problem because it's been working fine and just sometimes randomly doing this in battle but now it's started doing it every time, but it doesn't crash the game immediately, the battle works fine it's only when the last character has had their turn and then the enemy goes to attack, it's when he literally steps forward to make the hit that it then crashes, which is like what it says in the error log above, so I'm thinking it must be a problem to do with the enemy moving forward, or maybe damaging or something? But I don't know what that could be! I could be wrong on this though, I don't think it started happening after any new plugins I added though because it was working fine and I didn't add any new ones, but now suddenly it's not! 


But here's a list of my plugins if you can spot anything that might be the problem that'd be amazing!! (sorry it's so long haha!)


plugins.png
EDIT: Ok stupid me, I kind of worked that one out while I was posting that, turned the animated enemies plugin off and it works now! 😀  Thanks for your help Andar! Stubborn me would have been checking my action sequence for ages thinking it was that haha! 


Although, I do now have a problem that the enemy sort of tilts forward for it's attacking move and then afterewards also steps forward, which looks a bit stupid, is there a way to make him only do one of those? Maybe a clause for the action sequence that tells the enemy not to move forward (but the players still do)?


When I click on the first line of the error, it takes me here to the stepforward section (line 391 highlighted) of my animated enemies plugin...


step forward.png


And then the next error line takes me to here, to the step forward part of the battle engine core plugin, is something here conflicting? I feel like they're both saying things for the enemy stepping forward that is conflicting? 


step forward2.png

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-call-of-undefined-during-battle-action-sequence-problem.68274/