>>41572384In USUM, the injured Necrozma you catch has a catch rate of 255, the highest possible rate (i.e. you can catch it in anything, it doesn't matter), mostly to reflect that it was crippled from the previous battle. It was probably a waste of time to even use Glare.
Solgaleo and Lunala are the mascots, which have had catch rates of 45 since Gen 5 with Zekrom and Reshiram in the story, hence why so many people use the Moon Ball to catch them.
All non-alolamascot related legends still have a catch rate of 3 (e.g. Groudon, Cobalion, etc.). This obviously excludes Ultra Beasts, which are not considered legends officially.