Stache’s attack was perfectly timed, thanks to his veteran-pirate grasp tactics—and a big piece if luck.