Returns whether a unit is in the player's party or belongs to a party member. Returns nil for the player and the player's pet.


See also Unit functions, Party functions.

Signature:

inParty = UnitPlayerOrPetInParty("unit") or UnitPlayerOrPetInParty("name")

Arguments:

  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query (string)

Returns:

  • inParty - 1 if the unit is in the player's party or is a pet belonging to a party member; otherwise nil (1nil)