Wowpedia
Advertisement
Shadowlands-Icon-Inline.png GetPvpTalentInfoByID
+ 7.0.3   Townlong-Yak Globe.png
GetPvpTalentInfo
+ 7.0.3   - 8.0.1   Townlong-Yak Globe.png

Returns information about a PvP (honor) talent.

talentID, name, icon, selected, available, spellID, unlocked, row, column, known, grantedByAura = GetPvpTalentInfoByID(talentID[, specGroupIndex, isInspect, inspectUnit])

Arguments

talentID 
number - Talent ID.
specGroupIndex 
number? - Index of active specialization group (GetActiveSpecGroup); if nil, the selected/available return values will always be false.
isInspect 
boolean? - If non-nil, returns information based on inspectedUnit.
inspectedUnit 
string? - Inspected unitId.

Returns

1. talentID 
number - Talent ID.
2. name 
string - Talent name.
3. texture 
number - FileID
4. selected 
boolean - true if the talent is chosen, false otherwise.
5. available 
boolean - true if the talent tier is chosen, or if it is level-appropriate for the player and the player has no talents selected in that tier, false otherwise.
6. spellID 
number - Spell ID that is added to the spellbook.
7. unlocked 
boolean - Whether the talent is unlocked.
8. row 
number - The row the talent is from.
9. column 
number - The column the talent is from.
10. known
boolean - true if the talent is known, false otherwise.
11. grantedByAura 
boolean - true if the talent is granted by an aura (i.e., an effect on an item), false otherwise. The [Conflict and Strife] Azerite essence uses this instead of selected.

Patch changes

  • Battle for Azeroth Patch 8.0.1 / API (2018-07-17): PvP talents are no longer organized into a row/column table.

See also

Advertisement