change attack delay calculation