Editor’s Note: This story contains spoilers for Season 8 of “Game of Thrones.”

CNN  — 

There was lots of death in the final season of “Game of Thrones,” but one character who got killed was actually supposed to survive the carnage.

Dave Hill, a writer for the hit HBO series (HBO is owned by CNN’s parent company), revealed to Entertainment Weekly which of the characters had been plotted to make it.

“For a long time we wanted Ser Jorah to be there at The Wall in the end,” said Hill, but instead the writers decided to have the character perish while protecting Daenerys Targaryen from the Army of the Dead in the third episode.

‘Game of Thrones: The Last Watch’ pays tribute to show’s foot soldiers

“The three coming out of the tunnel would be Jon and Jorah and Tormund,” Hill said. “But the amount of logic we’d have to bend to get Jorah up to The Wall and get him to leave Dany’s side right before [the events in the finale] … there’s no way to do that blithely. And Jorah should have the noble death he craves defending the woman he loves.”

The actor who portrayed Ser Jorah, Iain Glen, told the publication that there was “a sweetness” in the character dying when he did because he was not around to see Daenerys fire bombing of King’s Landing which resulted in the death of tens of thousands of civilians.

What to watch and obsess over now that ‘Game of Thrones’ is done

“It’s a blessing for him that he never found out what happened to her,” Glen said. “And from a pragmatic story point of view, his death served a greater purpose. Where could we have taken Jorah from there? F**k if I know.”