User blog comment:Hayds126/Hacking in Pokémon/@comment-30686347-20180228174501/@comment-32358261-20180228201138

Your best hope is to breed a seperate 5iv or 6iv bagon. Best way to do this would be sos chain for 4iv or higher ditto (30 calls must pass). Try for a female

From there you need get a foreigner pokemon that is male (because that increase shiny odds)

Then endless breeding to pass down everything together.

Is it possible? Yes but you have to be ready for the long haul. Even I don’t think I’ll have the dedication to try this.