Along the same lines, some seacocks on warships are designed to flood the ship when opened. Typically, this is done to magazines to prevent detonation of the ammunition in the event of fire, or to maintain trim due to battle damage (counterflooding). Additionally, opening the seacocks is one of the main methods used to scuttle a ship so that it cannot be captured by the enemy (for example in the scuttling of the German fleet in Scapa Flow in 1919).