v0.13.8

C_SpecializationInfo

namespaceavailable in: camelot

Status in wowlua

31 functions: 9 implemented, 9 recorded, 13 guessed. 10 events, 3 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CanPlayerUsePVPTalentUIReturns true if the player is allowed to use the PvP talent UI, or false and a reason string if not.
(): (boolean, string)
recorded
CanPlayerUseTalentSpecUIReturns true if the player is allowed to use the specialization UI, or false and a reason string if not.
(): (boolean, string)
implemented
CanPlayerUseTalentUIReturns true if the player is allowed to use the talent UI, or false and a reason string if not.
(): (boolean, string)
implemented
GetActiveSpecGroupReturns the index of the current active specialization/talent/glyph group.
(isInspect: boolean?, isPet: boolean?): number
implemented
GetAllClassIDsReturns the IDs of all player classes. · by wowlua
(): number[]
implemented
GetAllSelectedPvpTalentIDsReturns the IDs of the player's selected PvP talents. · by wowlua
(): number[]
recorded
GetClassIDFromSpecIDReturns the ID of the class the given specialization belongs to. · by wowlua
(specID: number): number?
recorded
GetCombatConfigIDForSpecGroupReturns the ID of the talent loadout configuration of the given specialization group. · by wowlua
(groupIndex: number): number?
implemented
GetInspectSelectedPvpTalentReturns the ID of the PvP talent the inspected unit has selected in the given slot. · by wowlua
(inspectedUnit: string, talentIndex: number): number?
guessed
GetInspectSpecializationReturns the specialization ID of the inspected unit. · by wowlua
(unit: string): number
implemented
GetNumSpecializationsForClassIDReturns the number of specializations of the given class. · by wowlua
(classID: number): number
guessed
GetPvpTalentAlertStatusReturns whether PvP talent slots and PvP talents have something new to point out to the player. · by wowlua
(): (boolean, boolean)
recorded
GetPvpTalentInfoReturns information about the given PvP talent. · by wowlua
(talentID: number): PvpTalentInfo?
guessed
GetPvpTalentSlotInfoReturns information about a PvP talent slot. · by wowlua
(talentIndex: number): PvpTalentSlotInfo?
guessed
GetPvpTalentSlotUnlockLevelReturns the level at which a PvP talent slot unlocks. · by wowlua
(talentIndex: number): number?
recorded
GetPvpTalentUnlockLevelReturns the level at which the given PvP talent unlocks. · by wowlua
(talentID: number): number?
guessed
GetSpecIDsReturns the list of SpecializationIDs that are part of a specSet.
(specSetID: number): number[]
guessed
GetSpecializationReturns the index of the player's current specialization.
(isInspect: boolean?, isPet: boolean?, specGroupIndex: number?): number
implemented
GetSpecializationInfoReturns info for a specialization.
(specializationIndex: number, isInspect: boolean, isPet: boolean, inspectTarget: string?, sex: number?, groupIndex: number?, classID: number?): (number, string?, string?, number?, string?, number?, number, string?, number, boolean)
implemented
GetSpecializationMasterySpellsReturns the mastery spell ID of the specified specialization.
(specializationIndex: number, isInspect: boolean?, isPet: boolean?): number[]
recorded
GetSpellsDisplayReturns the IDs of the spells shown for the given specialization. · by wowlua
(specializationID: number): number[]
recorded
GetTalentInfoReturns info for the specified talent.
(query: TalentInfoQuery): TalentInfoResult?
guessed
HasPlayerEarnedATalentPointWhether the player has earned a talent point. · by wowlua
(): boolean
implemented
IsInitializedReturns whether player talent specialization info has been initialized.
(): boolean
recorded
IsPvpTalentLockedWhether the given PvP talent is locked. · by wowlua
(talentID: number): boolean
guessed
IsSpecSelectionEnabledWhether specialization selection is enabled for the given class. · by wowlua
(classID: number): boolean
recorded
MatchesCurrentSpecSetWhether the player's current specialization is in the given specialization set. · by wowlua
(specSetID: number): boolean
guessed
SetActiveSpecGroupSwitches to the given specialization group. · by wowlua
(groupIndex: number)
guessed
SetPetSpecializationSets the specialization of the player's pet. · by wowlua
(specIndex: number, petNumber: number?)
guessed
SetPvpTalentLockedLocks or unlocks the given PvP talent. · by wowlua
(talentID: number, locked: boolean)
guessed
SetSpecializationSwitches the player to the given specialization. Returns whether the change was started. · by wowlua
(specIndex: number): boolean
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ACTIVE_TALENT_GROUP_CHANGEDcurr: number, prev: numberimplemented
CONFIRM_PET_UNLEARNcost: numbernot implemented
CONFIRM_TALENT_WIPEcost: number, respecType: numbernot implemented
PET_SPECIALIZATION_CHANGEDno payloadnot implemented
PLAYER_LEARN_PVP_TALENT_FAILEDno payloadnot implemented
PLAYER_LEARN_TALENT_FAILEDno payloadnot implemented
PLAYER_PVP_TALENT_UPDATEno payloadimplemented
PLAYER_TALENT_UPDATEno payloadimplemented
SPEC_INVOLUNTARILY_CHANGEDisPet: booleannot implemented
TALENTS_INVOLUNTARILY_RESETisPetTalents: booleannot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("CONFIRM_PET_UNLEARN").

Structures

  • PvpTalentInfo · talentID, name, icon, selected, available, spellID, unlocked, known, grantedByAura, dependenciesUnmet, dependenciesUnmetReason?
  • PvpTalentSlotInfo · enabled, level, selectedTalentID?, availableTalentIDs
  • SpecializationInfoOutput · specId, name?, description?, icon?, role?, primaryStat?, pointsSpent, background?, previewPointsSpent, isUnlocked
  • SpecializationInfoQuery · specializationIndex, isInspect, isPet, inspectTarget?, sex?, groupIndex?, classID?
  • TalentInfoQuery · groupIndex?, isInspect, tier?, column?, target?, specializationIndex?, talentIndex?, isPet
  • TalentInfoResult · talentID, name, icon, tier, column, selected, available, spellID, isPVPTalentUnlocked, known, grantedByAura, rank, maxRank, meetsPrereq, previewRank, meetsPreviewPrereq, isExceptional, hasGoldBorder

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpecializationInfo system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.