Fixed a bug causing movements vector to be empty

There are still problems in battle context cache part. Seems to be
caused by multiple targets. Need a closer look at this part.