Pirate Invasion

The Pirate Invasion is an event when pirate themed enemies spawn and swarm the map's original spawn point. A Pirate Invasion occurs when the player uses a Pirate Map which has a chance of dropping from Ocean enemies.

Initial event
When a Pirate Invasion is summoned using a Pirate Map, a message will appear saying that "Pirates are approaching from the East/West!"

The message will repeat multiple times (maximum of 2 on large worlds) until the Pirates reach the initial spawn of the world. When the Pirates' initial wave reaches the spawn, a message is sent: "The Pirates have arrived!" The track "Golem" will then proceed to play as the players fight the pirates.

Completing the event
Similar to the Goblin Invasion, you must defeat a large number of pirates in order to defeat the invasion as a whole. Note that this may involve killing multiple Pirate Captains. This is currently the hardest Invasion in Terraria.

Pirate types
The crew will be made up of the following Pirate types:
 * Pirate Deckhand: A basic fighter-type Pirate that functions more-or-less like a Goblin Peon.
 * Pirate Deadeye: An enemy who is very basic, and is basically just the Deckhand with a gun.
 * Pirate Corsair: A faster, stronger version of the Deckhand that carries the Cutlass.
 * Pirate Crossbower: A Pirate enemy who carries a crossbow that resembles the repeaters a player can make in Hardmode.
 * Pirate Captain: The strongest enemy you will fight during the event. He has 2000 HP and walks towards you normally until you enter his range. When you enter his general area, he will start to fire on you with a machine gun. Once attacked, he ceases to fire, so it is recommended to keep your fire trained on him. He has a chance of shooting cannonballs, so be careful.
 * Parrot: A flying enemy that seems to spawn near the Captain.

Most Pirates are capable of opening and/or breaking down your Doors. A broken-down Door appears as a thrown-away item, which you can pick it up and place it again.

Strategies
If you want to face the pirates head-on you must be prepared. These pirates are not easily defeated for a beginning hardmode player. You might want to use weapons that pass through multiple enemies at once. The Shadowbeam staff or the Harp are quite suited. Alternatively, you can make sure the pirates stay below you, with you on a wooden platforn. Then use some kind of high-level Spear to slay the attackers. When a captain attacks, focus all of your attention on him, because he will stop attacking when attacked.