API UnitPlayerOrPetInParty

Returns whether a unit is another player in your party or the pet of another player in your party. inMyParty = UnitPlayerOrPetInParty("unit")

Arguments

 * unit : String (unitId) - Unit to check for party membership.

Returns

 * inMyParty : Flag - 1 if the unit is another player or another player's pet in your party, nil otherwise.