World of Warcraft Forever API · C_SpellDiminish.md, for your AI
C_SpellDiminish
4 functions, 1 events, 2 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
C_SpellDiminish.GetAllSpellDiminishCategories
categories = C_SpellDiminish.GetAllSpellDiminishCategories([ruleset])
Arguments
ruleset | SpellDiminishRuleset may be nil |
|---|
Returns
categories | SpellDiminishCategoryInfo[] |
|---|
C_SpellDiminish.GetSpellDiminishCategoryInfo
categoryInfo = C_SpellDiminish.GetSpellDiminishCategoryInfo(category)
Arguments
category | SpellDiminishCategory |
|---|
Returns
categoryInfo | SpellDiminishCategoryInfo may be nil |
|---|
C_SpellDiminish.IsSystemSupported
isSystemSupported = C_SpellDiminish.IsSystemSupported()
Returns
isSystemSupported | bool |
|---|
C_SpellDiminish.ShouldTrackSpellDiminishCategory
isTracked = C_SpellDiminish.ShouldTrackSpellDiminishCategory(category, ruleset)
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
category | SpellDiminishCategory | |
|---|---|---|
ruleset | SpellDiminishRuleset |
Returns
isTracked | bool |
|---|
Events
UNIT_SPELL_DIMINISH_CATEGORY_STATE_UPDATED
unitTarget | UnitTokenVariant | |
|---|---|---|
trackerInfo | SpellDiminishTrackerInfo |
Tables
SpellDiminishCategoryInfo structure
category | SpellDiminishCategory | |
|---|---|---|
name | cstring | |
icon | fileID may be nil |
SpellDiminishTrackerInfo structure
category | SpellDiminishCategory | |
|---|---|---|
startTime | number | |
duration | number | |
showCountdown | bool | |
isImmune | bool |