As Emily attacked Elizabeth, Ranaq's power inadvertently released Elizabeth's own mystical talents, where she was able to instinctively turn Ranaq's power against him, thus defeating him.
Ranaq's power inadvertently released Elizabeth's own mystical talents. This was as Emily attacked Elizabeth. She was able to instinctively turn Ranaq's power against him. Ranaq's power against him was thus defeating him.