Tree to Get Ready, The Ballad of Badbeard

Phineas and Ferb build super tree houses for themselves and Candace, but things get a little out of hand when a treehouse fight instigates. Meanwhile, Dr. Doofenshmirtz plans to ruin a ceremony in his brother's honor.
The boys set out on a high-seas adventure after learning about a mysterious pirate from their grandpa. Meanwhile, Candace spies Perry and Dr. Doofenschmirtz up to their old tricks, but is it all in her head?