She was prepared for Tommen's death because of the Maggie the Witch's prophecy - Joffrey and Mycella already dead so at that point had probably already accepted he was doneNah I don't think she planned it. But her kids were the only thing keep her "human" now she is wilding.