I believe there are legal rulings, related to HIV infection, that state that if an individual is purposely coughing on you, and you are aware that they are infected with a potentially deadly pathogen, and they are aware as well, that this constitutes assault and that an individual has the right to protect themselves.
I imagine that it matters a great deal if the victim was left with no other alternative than violence.