When one of my cats was attacked by 3 dogs he purred and wagged his tail. The vet put him to sleep but when I asked about the purring he said he was trying to comfort himself, as to the tail wagging he said he was still trying to fend the aggressors off.