Was Luna Lovegood with Harry at the Ministry Battle's End?
No – She Was Captured
Luna Lovegood was not with Harry at the end of the Battle of the Department of Mysteries.
What Happened
- Luna, Harry, Ron, Ginny, Neville, and Hermione enter the Department together.
- During the battle, Luna is captured by Death Eaters (along with Ginny and Neville).
- Harry, Ron, and Hermione escape the Death Chamber via the Veil room chase.
- Luna is rescued later by D.A. members (including Ernie Macmillan, Michael Corner) – not part of Harry's escape group.
Aftermath
- Luna recovers in Hospital Wing.
- She joins the final fight at Hogwarts (Book 7) but was separated at the Ministry climax.
So, at the battle's conclusion (Harry confronting Voldemort in the Atrium), Luna was already captured and elsewhere.