WoW API: GetAvailableRoles

Revision as of 20:56, 12 February 2021 by Bear (talk | contribs)

WoW API < GetAvailableRoles

Returns which LFG roles your character may fulfill.

local = canBeTank, canBeHealer, canBeDPS = GetAvailableRoles()

Parameters

Returns

  • canBeTank (onenil) - 1 if your character can be a tank in an LFG group, nil otherwise.
  • canBeHealer (onenil) - 1 if your character can be a healer in an LFG group, nil otherwise.
  • canBeDPS (onenil) - 1 if your character can be a damage-dealer in an LFG group, nil otherwise.

Details

At present, talents do not affect which roles are available to characters; as such, every class can sign up for a DPS role.

Notes

  • Removed in patch 4.0.1