A naval battle that was avoided by luck