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! ^^

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>

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>


