Fixing the behavior of the action bar during the attack process