The pirates may well have been the key to the outcome , for they alone knew the ins and outs of the bayou country , from where the British attack would come .
The British attack came in 1739 , and when it did the pirates defeated them .