How do I make the AI choose another attack if it picks an attack already on Cooldown

Set Timer by Function/Event is the only choice since decorator is called every frame and delay won’t work.