Selene13 memory magic was the one Marinette used to summon Sun-hee's memories into her mind. The condition was for both of them to lose consciousness at the same time and the risk was Marinette's memories might get lost forever and she won't be able to get her body back.