DeadX6 - Needs new engine!!!!!1

Yesterday at the Creek Chris's bike just totally died electrically speaking.
He was on his third lap half way through turn 1, got on the gas and it just spluttered and struggled. It just made it through 2 and 3 and then died going down the hill to 4. Tried to start it and nothing, just the dead battery sounding click when you hit the starter.
You turn the ignition on and everything happens as normal but when you hit the starter you get the click and everything else dies totally ie dash lights etc, the ignition resets and goes through the normal start process.
Being an electrical Gumby, anything beyond dead battery has me knackered, so here's the question. If the battery totally shit itself would it do this or are we looking at something more complex eg regulator rectifier etc.
With two weeks to PI any advice would be much appreciated.
He was on his third lap half way through turn 1, got on the gas and it just spluttered and struggled. It just made it through 2 and 3 and then died going down the hill to 4. Tried to start it and nothing, just the dead battery sounding click when you hit the starter.
You turn the ignition on and everything happens as normal but when you hit the starter you get the click and everything else dies totally ie dash lights etc, the ignition resets and goes through the normal start process.
Being an electrical Gumby, anything beyond dead battery has me knackered, so here's the question. If the battery totally shit itself would it do this or are we looking at something more complex eg regulator rectifier etc.
With two weeks to PI any advice would be much appreciated.