Behavior Tree - Enemy Attacks only once

Currently I’m trying to implement an attack mechanic on top of being chased. The enemy chases the player but attacks only once, except if the player moves a bit, than it will attack again.

With this tree I’m expecting, that the enemy chases the player, than loops the attack animation, but it attacks only once. What is wrong with the following behavior tree? In the screenshot below, the behavior tree is paused after the enemy attacked once. It seems to be frozen than, although in debug mode you can clearly see, that the tree is executing. In the screenshot all other paths than Attack are red out, so why is it not attacking?

I also set enemy and player to have collision overlapped, so the enemy can get super close to the player. Sometimes the enemy still stays in running state and will not execute the attack function until the player moves a tiny bit to the direction of the enemy.




Update Solved:

I found a solution now.