Game freezes

my Game freezes when the condition is not achieved

it stops for 3 seconds then resumes

What should happen is the ability to attack should go away for 3 seconds

any suggestions

Source file attached

thanks