I am trying to make a move to task but if there is a condition when the enemy is hit, this enemy will have to abort the task and make other task. What am I doing wrong?