Seven Leander-class frigates played the role of HMS Hero and for continuity , all were repainted with the pennant number F42 of HMS Phoebe , the main warship used for filming .
Four Leander class frigates played the role of HMS Hero .