When a person is injured while defending another person or pet from a dog attack, the owner of the attacking dog is liable (responsible) for all of the resulting injuries, damages and losses. The defenses of assumption of risk, comparative negligence and contributory negligence are generally not available. 

Self-defense when a dog attacks a person
Defending dogs and other animals
When a rescuer is injured