How to stop constantly switching of bools and make them work one by one?

Hello i am working on 2d PvP game and making A.I. but stuck at a point where i want my character to shoot powerball or walk at player, when at some distance. I made this system but problem is my character constantly change between walk and powerball shooting when i use delay it affects movement. So i want a system by which my booleans of powerball and movement change one by one but in random manner.