Phoenix Wright Ace Attorney: Legend of the Phoenix

Ace Attorney: Legend of the Phoenix is the seventh and final game of the Ace Attorney franchise. It is a visual novel adventure game.

Plot
The first case The Friendly Turnabout has Phoenix defending a long time friend Bob Bud, accused of murdering Victor Tim. We have Maya as our helper and Gaspen Payne is the prosecutor. Due to Payne's incompetence, Phoenix wins the case and proves the killer to be Gene Sawhit, Frank Sawhit's younger brother. Bob thanks Phoenix. Bob and Phoenix have a conversation of how Phoenix never really spoke to Bob.

The second case, Turnabout Terminal has Apollo flying from Khu'rain to visit his friends, but a murder happens in the airport, and Mike Meekins is the victim. and Apollo is the prime suspect. Athena takes up the defense. Bob is once again in this case talking with Phoenix while Athena investigates and go to court. This is Athena's first team up with Maya. Nahyuta becomes the prosecutor, but he's definitely not as antagonistic as in Spirit of Justice and is kinder. Nahyuta reveals he's trying to atone for helping Ga'ran, and his kind nature in court is one of his attempts at that. Athena wins the case, revealing a security officer named Josh Tsa as the true culprit and Nahyuta returns to Khu'rain.

The third case, The Toilet Turnabout has Apollo's first post-Khu'rain American case. He, Phoenix, Bob, Larry, Athena, Maya, Edgeworth and Pearl are watching Trucy's show when Pearl goes to use the bathroom. A murder happens at the bathroom and Betty De Famme is the victim. and Pearl gets framed for it. Apollo works alone in this case, as everyone thinks Pearl did it. Although Franziska von Karma, the prodigy, tries hard to win the case,  Apollo proves Pearl innocent and exposes the janitor, Felicia Stally, as the killer.

The fourth case Turnabout Noodle  has Guy Eldoon killed. His cousin Ramen gets framed for it. Prosecutor Klavier Gavin presides and Phoenix defends with Bob helping. Phoenix manages to show that a recurring costumer, Joseph Costumurr was the killer, but he insists he was tricked. After the case, Bob and Phoenix decide to hang out. Maya decides to check up on them a while after they leave. This continues directly into the fifth case.

The final case, Turnabout Legacy has Phoenix being killed. Maya is framed for it and Apollo takes her case. Edgeworth is the prosecutor. A subplot occurs where Athena tries to console Bob over Phoenix's death ,trying to use the mood matrix on him to help him out. Bob keeps refusing. Meanwhile, Apollo is losing the case. Trucy is trying hard to help Apollo, but the events are in the favor of Edgeworth. It gets worse when Bob testifies, as he manages to basically prove Maya's guilt. Just as the Judge declares the verdict, Athena bashes in. She tells Trucy she can handle this. Athena uses the Mood Matrix on Bob, revealing the shocking truth. Bob was the mastermind behind all of the cases all along. He placed himself in danger by asking Gene to kill Victor and frame him. Then as Apollo arrived, he told John Tsa to kill Mike Meekins, which John agreed to do as he saw Mike Meekins as too weak to be a cop and needed to be struck out of the force. He also hid a gun in Felicia's broom, thus causing her to pick it up and kill Betty since she always hated Betty due to her constantly bullying her in elementary school. Finally he made Joseph drunk, causing him to be not himself which caused the commotion that lead to Guy's death. After that, he threw Phoenix off the rooftop of the Wright Anything Agency and framed Maya for it. He denied all of this, but after reviewing all the previous cases, Apollo put the pieces together and used 5 pieces of evidence, each from the previous cases, to  prove Bob's guilt. Bob admits he wanted revenge because Phoenix made him feel inferior because he never really talked to him. He says he needed Phoenix out of the picture to make him feel normal and didn't want things to end this way. So he planned a way to make small talk with Phoenix by pulling all the strings. Then, he did the act so he'd never talk to Larry or Edgeworth again. He breaks down crying remorseful tears. Maya is subsequently declared Not Guilty.

After the trial, Maya channels Phoenix who tells Trucy and Apollo the truth about Thalassa. Apollo decides to lead the Wright Anything Agency forward to keep Phoenix's memory going and shouts one last OBJECTION! with Athena after Trucy suggests for them to stop doing cases for a while. The game, and so the franchise, ends on a bittersweet note.