>>20611245It changes the ID/SID on your pokemon so so that they will result in a shiny pokemon with that pokemon's specific PID, since shininess is determined by doing a bunch of XOR operations on the ID, SID, and PID. Since it changes the ID/SID, you are no longer the OT for that pokemon. Using the deshiny code will set the pokemon's ID/SID to yours.
>>20611191Since KeySAV2 allows you to export pkx files, I might check this out, although I'm 95% certain only gender, ability, and shininess are tied into the pokemon's PID now. And the shiny value did exist before gen 6, since it's just an easier way of looking at how a trainer's ID/SID can get shinies when a pokemon has a certain PID.