Unfortunately you may not trade hacked Pokemon.
Shiny Lugia obtained in the 3rd and 4th gen cannot be Bold 31/31/31/31/31/31. These specific games only generate all perfect stats for the Timid, Modest, Docile, and Calm natures due to the older method of generating/calculating the Pokemon.
There is no way to legitimately obtain a shiny Lugia with six perfect IVs in the 5th and 6th gens. The chances of finding a shiny Lugia in Alpha Sapphire with all six perfect stats with a bold nature without the shiny charm is 1 in 268,435,456. That is 1/4096 for shiny. That is 1/32768 for the three perfect IVs as legendaries are now guaranteed the other three stats being perfect. That is 1/2 with synchronize working half of the time.
Either one of its IVs are not perfect or it is hacked.