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.

"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."

Read More