so it was that the pirates and the ninjas fought together , yet separately , against a common foe : some , out of love for a woman ; some , out of respect for their captain ; and some out of a sheer will to survive , all their respect for authority drained from them .