 Complete the following phrase:  As the flagship of Admiral Juan de Lángara, the ship fought at the Battle of Cape St Vincent on 16January 1780, where she was captured by the British Royal Navy and commissioned as the third rate HMS Gibraltar in March of that year. She spent a short while in the English Channel before joining Samuel Hoods squadron in the West Indies and taking part in the Capture of St Eustatius in February 1781 and the Battle of Fort Royal the following month. Gibraltar and five other ships were sent to stop a French invasion fleet bound for Tobago in May 1781, but found the French too powerful and had to withdraw. In November, her 18-pound guns were replaced with 24-pounders, after which, in February 1782, she sailed to the East Indies and in the following year participated in the 