I assume that the Pope would excommunicate you before attcking, its just that in the original Medieval he would attack you and try to expand into your lands.