Guys, this rule is making me crazy...I think it's way unclear.
I want to do piracy in the barbary coast, let's say against the hapsburgh.
The hapsburgh has a naval squad in the port in Barcelona, one in Palma and one in the open sea in the gulf of Lyon.
Question is: which of these three naval squadron help the hapsburgh with dices? And also...does the fortress in Malta help?
Once you can wrap your head around the idea that port spaces are separate spaces from the open sea, then it will all fit together.
You get 2 dice out of the 4 units you mention.
1) BARCELONA, in port - No dice. It's not adjacent to the Barbary Coast - but if you moved it out to sea, it would add a die.
2) PALMA, in port - 1 die. The port itself is adjacent to the Barbary Coast.
3) GULF OF LYON, open sea - 1 die. The space is adjacent to the Barbary Coast.
4). MALTA Fortress - No dice. The space is not adjacent to the Barbary Coast.
Thus, if you really want to clamp down on piracy, you need to get the fleets into the open sea early.
Don't forget that Gibraltar is also on the Barbary Coast and thus adds a die.