The question is somewhat long so here it is:
With any interactable legendary where you can soft reset and try to make it shiny again,i.e. heatran,kyogre, mewtwo,etc., if it appears shiny and you faint it will it reappear as a shiny Pokemon when you interact with it again?