I'll give you 5 seconds to think about what you've written here.
.
..
...
....
.....
Yeah, maybe if you Mega evolve, switch out, then switch back in, you'll only take 25% damage. But the fact that you switched out CharX is already an issue, it means you played your trump card at the wrong time...