World of Warcraft Forever API · C_Secrets.md, for your AI
C_Secrets
27 functions, 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
C_Secrets.CanCompareUnitTokens
isUnitComparisonPermitted = C_Secrets.CanCompareUnitTokens(unit1, unit2)
Returns true if queries to compare two input unit tokens are permitted. If this returns false, APIs guarded by the RequiresComparableUnitTokens predicate will fail.
Arguments
unit1 | UnitToken | |
|---|---|---|
unit2 | UnitToken |
Returns
isUnitComparisonPermitted | bool |
|---|
C_Secrets.GetPowerTypeSecrecy
secrecy = C_Secrets.GetPowerTypeSecrecy(powerType)
Queries the base secrecy for a power type.
Arguments
powerType | PowerType |
|---|
Returns
secrecy | SecrecyLevel |
|---|
C_Secrets.GetSpellAuraSecrecy
secrecy = C_Secrets.GetSpellAuraSecrecy(spellIdentifier)
Queries the base secrecy for a spell if queried as an aura.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
secrecy | SecrecyLevel |
|---|
C_Secrets.GetSpellCastSecrecy
secrecy = C_Secrets.GetSpellCastSecrecy(spellIdentifier)
Queries the base secrecy for a spell if queried as a cast.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
secrecy | SecrecyLevel |
|---|
C_Secrets.GetSpellCooldownSecrecy
secrecy = C_Secrets.GetSpellCooldownSecrecy(spellIdentifier)
Queries the base secrecy for a spell if queried as a cooldown.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
secrecy | SecrecyLevel |
|---|
C_Secrets.HasSecretRestrictions
hasSecretRestrictions = C_Secrets.HasSecretRestrictions()
Returns true if this client build has secret value restrictions enabled. If false, all APIs that are tagged as potentially returning secrets will never do so.
Returns
hasSecretRestrictions | bool |
|---|
C_Secrets.ShouldActionCooldownBeSecret
isCooldownSecret = C_Secrets.ShouldActionCooldownBeSecret(actionID)
Returns true if a given action bar slot ID will produce secret values for cooldowns if queried.
Arguments
actionID | luaIndex |
|---|
Returns
isCooldownSecret | bool |
|---|
C_Secrets.ShouldAurasBeSecret
hasSecretAuras = C_Secrets.ShouldAurasBeSecret()
Returns true if queries for aura data will generally produce secret values.
Returns
hasSecretAuras | bool |
|---|
C_Secrets.ShouldCooldownsBeSecret
hasSecretCooldowns = C_Secrets.ShouldCooldownsBeSecret()
Returns true if queries for cooldown data will generally produce secret values.
Returns
hasSecretCooldowns | bool |
|---|
C_Secrets.ShouldSpellAuraBeSecret
isAuraSecret = C_Secrets.ShouldSpellAuraBeSecret(spellIdentifier)
Returns true if a given spell identifier would, if applied as an aura, produce secret values when queried.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
isAuraSecret | bool |
|---|
C_Secrets.ShouldSpellBookItemCooldownBeSecret
isCooldownSecret = C_Secrets.ShouldSpellBookItemCooldownBeSecret(spellBookItemSlotIndex, spellBookItemSpellBank)
Returns true if a given spellbook item will produce secret values for cooldowns if queried.
Arguments
spellBookItemSlotIndex | luaIndex | |
|---|---|---|
spellBookItemSpellBank | SpellBookSpellBank |
Returns
isCooldownSecret | bool |
|---|
C_Secrets.ShouldSpellCooldownBeSecret
isCooldownSecret = C_Secrets.ShouldSpellCooldownBeSecret(spellIdentifier)
Returns true if a given spell identifier will produce secret values for cooldowns if queried.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
isCooldownSecret | bool |
|---|
C_Secrets.ShouldTotemSlotBeSecret
isTotemSecret = C_Secrets.ShouldTotemSlotBeSecret(slot)
Returns true if information about a totem slot will produce secret values if queried.
Arguments
slot | luaIndex |
|---|
Returns
isTotemSecret | bool |
|---|
C_Secrets.ShouldTotemSpellBeSecret
isTotemSecret = C_Secrets.ShouldTotemSpellBeSecret(spellID)
Returns true if information about a spell when associated with a totem slot will produce secret values if queried.
Arguments
spellID | number |
|---|
Returns
isTotemSecret | bool |
|---|
C_Secrets.ShouldUnitAuraIndexBeSecret
isAuraSecret = C_Secrets.ShouldUnitAuraIndexBeSecret(unit, index, [filter])
Returns true if a given aura index will produce secret values if queried.
Arguments
unit | UnitToken | |
|---|---|---|
index | luaIndex | |
filter | AuraFilters may be nil |
Returns
isAuraSecret | bool |
|---|
C_Secrets.ShouldUnitAuraInstanceBeSecret
isAuraSecret = C_Secrets.ShouldUnitAuraInstanceBeSecret(unit, auraInstanceID)
Returns true if a given aura instance ID will produce secret values if queried.
Arguments
unit | UnitToken | |
|---|---|---|
auraInstanceID | number |
Returns
isAuraSecret | bool |
|---|
C_Secrets.ShouldUnitAuraSlotBeSecret
isAuraSecret = C_Secrets.ShouldUnitAuraSlotBeSecret(unit, slot)
Returns true if a given aura slot ID will produce secret values if queried.
Arguments
unit | UnitToken | |
|---|---|---|
slot | number |
Returns
isAuraSecret | bool |
|---|
C_Secrets.ShouldUnitComparisonBeSecret
isUnitComparisonSecret = C_Secrets.ShouldUnitComparisonBeSecret(unit1, unit2)
Returns true if queries that compare units will produce secret values.
Arguments
unit1 | UnitToken | |
|---|---|---|
unit2 | UnitToken |
Returns
isUnitComparisonSecret | bool |
|---|
C_Secrets.ShouldUnitHealthMaxBeSecret
isUnitHealthMaxSecret = C_Secrets.ShouldUnitHealthMaxBeSecret(unit)
Returns true if queries for maximum unit health will produce secret values.
Arguments
unit | UnitToken |
|---|
Returns
isUnitHealthMaxSecret | bool |
|---|
C_Secrets.ShouldUnitIdentityBeSecret
isUnitIdentitySecret = C_Secrets.ShouldUnitIdentityBeSecret(unit)
Returns true if queries for unit identity (such as name or GUID) will produce secret values.
Arguments
unit | UnitToken |
|---|
Returns
isUnitIdentitySecret | bool |
|---|
C_Secrets.ShouldUnitPowerBeSecret
isUnitPowerSecret = C_Secrets.ShouldUnitPowerBeSecret(unit, [powerType])
Returns true if queries for unit power will produce secret values.
Arguments
unit | UnitToken | |
|---|---|---|
powerType | PowerType may be nil |
Returns
isUnitPowerSecret | bool |
|---|
C_Secrets.ShouldUnitPowerMaxBeSecret
isUnitPowerMaxSecret = C_Secrets.ShouldUnitPowerMaxBeSecret(unit, [powerType])
Returns true if queries for maximum unit power will produce secret values.
Arguments
unit | UnitToken | |
|---|---|---|
powerType | PowerType may be nil |
Returns
isUnitPowerMaxSecret | bool |
|---|
C_Secrets.ShouldUnitSpellCastBeSecret
isSpellCastSecret = C_Secrets.ShouldUnitSpellCastBeSecret(unit, spellIdentifier)
Returns true if queries for spell casting information for a unit would produce secret values when queried.
Arguments
unit | UnitToken | |
|---|---|---|
spellIdentifier | SpellIdentifier |
Returns
isSpellCastSecret | bool |
|---|
C_Secrets.ShouldUnitSpellCastingBeSecret
isSpellCastingSecret = C_Secrets.ShouldUnitSpellCastingBeSecret(unit)
Returns true if queries for spell casting information for a specific unit will generally produce secret values.
Arguments
unit | UnitToken |
|---|
Returns
isSpellCastingSecret | bool |
|---|
C_Secrets.ShouldUnitStatsBeSecret
hasSecretStats = C_Secrets.ShouldUnitStatsBeSecret()
Returns true if queries for unit statistics will produce secret values.
Returns
hasSecretStats | bool |
|---|
C_Secrets.ShouldUnitThreatStateBeSecret
isUnitThreatSecret = C_Secrets.ShouldUnitThreatStateBeSecret(unit, [mobUnit])
Returns true if queries for unit threat status will produce secret values.
Arguments
unit | UnitToken | |
|---|---|---|
mobUnit | UnitToken may be nil |
Returns
isUnitThreatSecret | bool |
|---|
C_Secrets.ShouldUnitThreatValuesBeSecret
isUnitThreatSecret = C_Secrets.ShouldUnitThreatValuesBeSecret(unit, mobUnit)
Returns true if queries for unit threat values will produce secret values.
Arguments
unit | UnitToken | |
|---|---|---|
mobUnit | UnitToken |
Returns
isUnitThreatSecret | bool |
|---|