v0.13.7

C_Traits.GetConditionInfo

functionimplementedavailable in: camelot

Returns conditionInfo applicable to the configID you enter

signaturewowlua
function C_Traits.GetConditionInfo(    configID: number,    condID: number): TraitCondInfo?

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.
condIDnumberTrait conditionId as found in e.g. C_Traits.GetNodeInfo or C_Traits.GetEntryInfo

Returns

condInfo · TraitCondInfo? · returns nil if no info is found

TraitCondInfo
fieldtypedescription
condIDnumber
ranksGrantednumber?
isAlwaysMetboolean
isMetbooleanTrue if the source for the condition has been fulfilled.
isGateboolean
isSufficientbooleanTrue if meeting the requirements for the condition means any nodes using this condition are considered fulfilled if the condition is met.
typenumberThe value from the TraitConditionType enum the condition uses.
questIDnumber?
achievementIDnumber?
specSetIDnumber?
playerLevelnumber?
traitCurrencyIDnumber?
spentAmountRequirednumber?
tooltipFormatstring?
traitCondAccountElementIDnumber?

Blizzard's documentation says it may return nothing.

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 ↗.