Get what roles a unit can play in the group or raid. See UnitSetRole("unit", "role")


See also Party functions, Raid functions.

Signature:

canBeTank, canBeHealer, canBeDPS = UnitGetAvailableRoles("unit")

Arguments:

  • unit - Unit to modify (string, unitID)

Returns:

  • canBeTank - Returns true if the unit can play a TANK , false otherwise. (boolean)
  • canBeHealer - Returns true if the unit can play a HEALER, false otherwise. (boolean)
  • canBeDPS - Returns true if the unit can play a DAMAGER, false otherwise. (boolean)