With quality writing.
At one point they even discussed that they would not be able to beat the NK and his army in an open battle iirc. In the end the NK was not killed in battle but they fought the battle nonetheless.
It's astonishing how the perception of D&D has changed over the seasons. I remember they got a lot of praise for the earlier seasons. People either got much more critical or the the quality has really dropped a bit.
I do think though that if certain things from the earlier seasons happened now they would be seen as lazy writing as well. Tywin deciding the blackwater battle or Melisandre giving birth to a shadow that kills a well guarded king.
But I think it's also fair to say that GoT clearly has lost some of it's glamour. The universe has gotten too small which makes it difficult to give certain plots the time they would need to develop properly, and then there's some obvious flaws (forgetting about the most powerful fleet in the world?).
However, Dany turning angry and showing signs of madness is not one of them. She always had this deeply rooted hate against the iron throne. But now she has no one left that talks some sense to her. Her friends are gone and her hand has failed several times to convince her. Dany attacking King's Landing full steam is not a heelturn, it was inevitable.