World of Warcraft Forever API · C_SpecializationInfo.md, for your AI
C_SpecializationInfo
31 functions, 10 events, 6 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
canUse, failureReason = C_SpecializationInfo.CanPlayerUsePVPTalentUI()
Returns
canUse | bool | |
|---|
failureReason | string | |
|---|
canUse, failureReason = C_SpecializationInfo.CanPlayerUseTalentSpecUI()
Returns
canUse | bool | |
|---|
failureReason | string | |
|---|
canUse, failureReason = C_SpecializationInfo.CanPlayerUseTalentUI()
Returns
canUse | bool | |
|---|
failureReason | string | |
|---|
groupIndex = C_SpecializationInfo.GetActiveSpecGroup([isInspect], [isPet])
Arguments
isInspect | bool may be nil | |
|---|
isPet | bool may be nil | |
|---|
Returns
allClassIDs = C_SpecializationInfo.GetAllClassIDs()
Returns
selectedPvpTalentIDs = C_SpecializationInfo.GetAllSelectedPvpTalentIDs()
Returns
selectedPvpTalentIDs | number[] | |
|---|
classID = C_SpecializationInfo.GetClassIDFromSpecID(specID)
Arguments
Returns
configID = C_SpecializationInfo.GetCombatConfigIDForSpecGroup(groupIndex)
Arguments
Returns
configID | number may be nil | |
|---|
selectedTalentID = C_SpecializationInfo.GetInspectSelectedPvpTalent(inspectedUnit, talentIndex)
Arguments
inspectedUnit | UnitToken | |
|---|
talentIndex | number | |
|---|
Returns
selectedTalentID | number may be nil | |
|---|
specializationID = C_SpecializationInfo.GetInspectSpecialization(unit)
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
Returns
specCount = C_SpecializationInfo.GetNumSpecializationsForClassID(classID)
Arguments
Returns
hasUnspentSlot, hasNewTalent = C_SpecializationInfo.GetPvpTalentAlertStatus()
Returns
hasUnspentSlot | bool | |
|---|
hasNewTalent | bool | |
|---|
talentInfo = C_SpecializationInfo.GetPvpTalentInfo(talentID)
Arguments
Returns
slotInfo = C_SpecializationInfo.GetPvpTalentSlotInfo(talentIndex)
Arguments
Returns
requiredLevel = C_SpecializationInfo.GetPvpTalentSlotUnlockLevel(talentIndex)
Arguments
Returns
requiredLevel | number may be nil | |
|---|
requiredLevel = C_SpecializationInfo.GetPvpTalentUnlockLevel(talentID)
Arguments
Returns
requiredLevel | number may be nil | |
|---|
specIDs = C_SpecializationInfo.GetSpecIDs(specSetID)
Arguments
Returns
specializationIndex = C_SpecializationInfo.GetSpecialization([isInspect], [isPet], [specGroupIndex])
Arguments
isInspect | bool may be nil | |
|---|
isPet | bool may be nil | |
|---|
specGroupIndex | luaIndex may be nil | |
|---|
Returns
specializationIndex | luaIndex | |
|---|
specId, name, description, icon, role, primaryStat, pointsSpent, background, previewPointsSpent, isUnlocked = C_SpecializationInfo.GetSpecializationInfo(specializationIndex, [isInspect], [isPet], [inspectTarget], [sex], [groupIndex], [classID])
Arguments
specializationIndex | luaIndex | |
|---|
isInspect | bool default false | |
|---|
isPet | bool default false | |
|---|
inspectTarget | string may be nil | |
|---|
sex | number may be nil | |
|---|
groupIndex | luaIndex may be nil | |
|---|
classID | number may be nil | |
|---|
Returns
specId | number default 0 | |
|---|
name | string may be nil | |
|---|
description | string may be nil | |
|---|
icon | fileID may be nil | |
|---|
role | string may be nil | |
|---|
primaryStat | luaIndex may be nil | |
|---|
pointsSpent | number default 0 | |
|---|
background | string may be nil | |
|---|
previewPointsSpent | number default 0 | |
|---|
isUnlocked | bool default true | |
|---|
spellIDs = C_SpecializationInfo.GetSpecializationMasterySpells(specializationIndex, [isInspect], [isPet])
Arguments
specializationIndex | luaIndex | |
|---|
isInspect | bool may be nil | |
|---|
isPet | bool may be nil | |
|---|
Returns
spellID = C_SpecializationInfo.GetSpellsDisplay(specializationID)
Arguments
Returns
result = C_SpecializationInfo.GetTalentInfo(query)
Arguments
Returns
hasEarned = C_SpecializationInfo.HasPlayerEarnedATalentPoint()
Returns
isSpecializationDataInitialized = C_SpecializationInfo.IsInitialized()
Returns
isSpecializationDataInitialized | bool | |
|---|
locked = C_SpecializationInfo.IsPvpTalentLocked(talentID)
Arguments
Returns
enabled = C_SpecializationInfo.IsSpecSelectionEnabled(classID)
Arguments
Returns
matches = C_SpecializationInfo.MatchesCurrentSpecSet(specSetID)
Arguments
Returns
C_SpecializationInfo.SetActiveSpecGroup(groupIndex)
Arguments
C_SpecializationInfo.SetPetSpecialization(specIndex, [petNumber])
Arguments
specIndex | luaIndex | |
|---|
petNumber | number may be nil | |
|---|
C_SpecializationInfo.SetPvpTalentLocked(talentID, locked)
Arguments
success = C_SpecializationInfo.SetSpecialization(specIndex)
Arguments
Returns
Events
cost | number | |
|---|
respecType | number | |
|---|
Tables
talentID | number | |
|---|
name | string | |
|---|
icon | number | |
|---|
selected | bool | |
|---|
available | bool | |
|---|
spellID | number | |
|---|
unlocked | bool | |
|---|
known | bool | |
|---|
grantedByAura | bool | |
|---|
dependenciesUnmet | bool | |
|---|
dependenciesUnmetReason | string may be nil | |
|---|
enabled | bool | |
|---|
level | number | |
|---|
selectedTalentID | number may be nil | |
|---|
availableTalentIDs | number[] | |
|---|
specId | number default 0 | |
|---|
name | string may be nil | |
|---|
description | string may be nil | |
|---|
icon | fileID may be nil | |
|---|
role | string may be nil | |
|---|
primaryStat | luaIndex may be nil | |
|---|
pointsSpent | number default 0 | |
|---|
background | string may be nil | |
|---|
previewPointsSpent | number default 0 | |
|---|
isUnlocked | bool default true | |
|---|
specializationIndex | luaIndex | |
|---|
isInspect | bool default false | |
|---|
isPet | bool default false | |
|---|
inspectTarget | string may be nil | |
|---|
sex | number may be nil | |
|---|
groupIndex | luaIndex may be nil | |
|---|
classID | number may be nil | |
|---|
groupIndex | luaIndex may be nil | |
|---|
isInspect | bool default false | |
|---|
tier | luaIndex may be nil | |
|---|
column | luaIndex may be nil | |
|---|
target | UnitToken may be nil | |
|---|
specializationIndex | luaIndex may be nil | |
|---|
talentIndex | luaIndex may be nil | |
|---|
isPet | bool default false | |
|---|
talentID | number default 0 | |
|---|
name | string | |
|---|
icon | fileID | |
|---|
tier | luaIndex | |
|---|
column | luaIndex | |
|---|
selected | bool default false | |
|---|
available | bool default false | |
|---|
spellID | number default 0 | |
|---|
isPVPTalentUnlocked | bool default false | |
|---|
known | bool default false | |
|---|
grantedByAura | bool default false | |
|---|
rank | luaIndex | |
|---|
maxRank | luaIndex | |
|---|
meetsPrereq | bool default false | |
|---|
previewRank | luaIndex | |
|---|
meetsPreviewPrereq | bool default false | |
|---|
isExceptional | bool default false | |
|---|
hasGoldBorder | bool default false | |
|---|