I have also seen other dragons fry themselves along with the units that are melee attacking the dragon.
in my view the simplest fix would be to put a minimum range for the firebreath attack of two squares as the attack has a radius of one square and a max range of three squares.
harpo