battle basically ends while he's in the Houses of Healing

The only confrontations Gandalf gets into here are against the Witch-king, who leaves without a fight when the Rohirrim arrive, and against Denethor, who Gandalf disarms with magic

Despite being present at the Battle of the Black Gate, neither Gandalf nor Aragorn seem to do any actual fighting:

All about the hills the hosts of Mordor raged. The Captains of the West were foundering in a gathering sea. The sun gleamed red, and under the wings of the Nazgûl the shadows of death fell dark upon the earth. Aragorn stood beneath his banner, silent and stern, as one lost in thought of things long past or far away; but his eyes gleamed like stars that shine the brighter as the nightParker. Both men were impassioned and bombastic coaches, and as such drew the ire of each other and of opposing fans. While they often had choice words for each other during their coaching careers, Parker spoke kindly of Walsh during his cancer treatment and following his 2001 death. While some fans view Boston College and New Hampshire as BU and Maine's historical and primary rivals, respectively, fans from the heat of the rivalry in the 1990s and early 2000s may report that in their opinion, either Maine or BU is their schools true rival, not UNH or BC. Even after Walsh's 2001 death, the rivalry has remained heated and competitive, meeting in the Hockey East playoff tournament in 2002, 2004, 2009, 2010, and 2012, with Maine winning each