Get what roles a unit can play in the group or raid. See UnitSetRole("unit", "role") Signature: Code 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)
Также смотрите: ПвП
Ссылки: http://wowprogramming.com/docs/api/UnitGetAvailableRoles
|