The state of the priests soul is irrelevant. He is the in person am Cristi.
I’m an EME. If someone walks up to me and says, I am living in sin but want Communion anyway I would not offer the host. Other than that I do not know the state of his/her soul.
Of course you are not in a position to know, it is the personal responsibility of the communicant.