Honestly: All your Pokemon are Shiny, a Azelf from you survives a U-Turn PLUS a STABed X-Scissor (okay, you said, its hacked). Further, I can't believe, that a Gengar takes a STABed Thunderbolt from a Magnezone with 358 SpAtk, like nothing. I calculated the damage, a Thunderbolt from Magnezone (358 SpAtk, neutral nature) does on Gengar (neutral nature and 185 SpDef, I guessed) and it says me: 75,44% - 81,01%. But that TB to your Gengar did even not the half..