When you lose a fight as the defender, you get the opportunity to revenge the player that attacked. It does not matter if pirates, the wild, or revenge.