Person A makes claim X. Person B makes an attack on person A. Therefore A's claim is false.
The reason why an Ad Hominem (of any kind) is a fallacy is that the character, circumstances, or actions of a person do not (in most cases) have a bearing on the truth or falsity of the claim being made (or the quality of the argument being made).
Dave: "Of course you would say that, you're a priest."
Bill: "What about the arguments I gave to support my position?"
Dave: "Those don't count. Like I said, you're a priest, so you have to say that abortion is wrong. Further, you are just a lackey to the Pope, so I can't believe what you say."
Read slowly, rinse, wash, repeat, then consider devoting your time to something worthwhile...