Question, again..😂

So I was collecting the yellow stakes in the ground (forgot how many I had to collect) and I went to the shrine, once it opened i was fighting chien-pao and I accidentally made it faint.

I forgot the Pokémon I used was a fire type🥲 I was devastated but I’m wondering if the Pokémon will reappear like the terastallized wild Pokémon do. I always change the time on my date and time for the tera Pokémon to respawn. But when I do it the shrine doesn’t open.

I’m wondering if it’s because chien-pao is a legendary?