Complex sentence: Each of Sunset's friends ponies up throughout the games as they offer their friendship to Twilight, whose pendant inadvertently drains them of their magic whenever she is near them.
Split into simpler sentences: Each of Sunset's friends ponies up throughout the games as they offer their friendship to Twilight. However, Twilight's pendant inadvertently drains them of their magic whenever she is near them.