This will also occur if the Game Object is no longer among the set of objects that are made untargetable by a Game Effect. Example: Alpha Wildclaw and Vilemaw are controlled by the same player and located at a battlefield. An opponent targets Vilemaw with Rebuke. Before Rebuke resolves, Vilemaw’s controller plays Discipline targeting Alpha Wildclaw, making Vilemaw no longer a legal target. Rebuke’s controller then targets Alpha Wildclaw with Star-Crossed. When Star-Crossed resolves, Alpha Wildclaw’s passive ability no longer applies to Vilemaw, making it a legal target for Rebuke. After all spells and abilities have resolved, both Vilemaw and Alpha Wildclaw will be returned to hand.
§ 758.2.a Core Rules PDF (officieel)
§ 758 Untargetable Game Objects are not legal targets for the indicated spells and abilities. See rule 355.6. Targeting for more information.
§ 758.2 If the spell or ability changes for any reason such that it will no longer fall under the category of spells or abilities for which a Game Object is untargetable, the Game Object will become a legal target for that spell or ability. Example: A 1 [M] unit reads “I can’t be chosen by enemy spells or a…