v0.13.8

C_Traits.GetTreeCurrencyInfo

functionimplementedavailable in: camelot

Returns the list of TraitCurrencies related to a TraitTree.

signaturewowlua
function C_Traits.GetTreeCurrencyInfo(    configID: number,    treeID: number,    excludeStagedChanges: boolean): TreeCurrencyInfo[]

Parameters

nametypedescription
configIDnumberFor TalentTrees this will often be C_ClassTalents.GetActiveConfigID, this is -1 when inspecting a player. For professions, this will be C_ProfSpecs.GetConfigIDForSkillLine.
treeIDnumberFor TalentTrees a class specific TreeID, for professions C_ProfSpecs.GetSpecTabIDsForSkillLine.
excludeStagedChangesbooleanIf true, the committed value is returned; if false, the staged value is returned instead.

Returns

treeCurrencyInfo · TreeCurrencyInfo[] · For TalentTrees, the first currency returned is for the class points, the second currency is spec points.

TreeCurrencyInfo
fieldtype
traitCurrencyIDnumber
quantitynumber
maxQuantitynumber?
spentnumber
spentInTreenumber?

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SharedTraits system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.