WowAddons

World of Warcraft Forever API · SpellShared.md, for your AI

SpellShared (types and enums)

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

Tables

SpellChargeInfo structure

currentChargesnumberNumber of charges currently available
maxChargesnumberMax number of charges that can be accumulated
cooldownStartTimenumberIf charge cooldown is active, time at which the most recent charge cooldown began; 0 if cooldown is not active
cooldownDurationnumberCooldown duration in seconds required to generate a charge
chargeModRatenumberRate at which cooldown UI should update
isActiveboolFalse if recharging is not active (ex: at maximum available charges, start time or duration are zero); True otherwise

SpellCooldownInfo structure

startTimenumberIf cooldown is active, time started; 0 if no cooldown; Current time if isEnabled is false
durationnumberCooldown duration in seconds if active; 0 if cooldown is inactive
isEnabledboolFalse if cooldown is on hold (ex: some cooldowns only start after an active spell is cancelled); True otherwise
isActiveboolFalse if cooldown is not active (ex: not enabled, or startTime or duration are 0); True otherwise
modRatenumberRate at which cooldown UI should update
activeCategorynumber may be nilIndicates which category is responsible for determining the duration. A nil value indicates the duration was determined through some other logic, e.g. the spell is on hold.
timeUntilEndOfStartRecoverynumber may be nilWhen this is set it indicates that the spell is in recovery and this is how long it will be until that recovery period is finished
isOnGCDbool may be nilWhether or not this spell is considered to be on the global cooldown, do not trust this field unless responding to a SPELL_UPDATE_COOLDOWN event

SpellLossOfControlInfo structure

startTimenumberIf cooldown is active, time started; 0 if no cooldown
durationnumberCooldown duration in seconds if active; 0 if cooldown is inactive
modRatenumberRate at which cooldown UI should update
isActiveboolFalse if cooldown is not active (startTime or duration are 0); True otherwise
shouldReplaceNormalCooldownboolTrue if this cooldown should be displayed in-place of the normal action cooldown (ex: the LoC cooldown expires later than the normal cooldown); False otherwise

SpellPowerCostInfo structure

typePowerType
namestringThe name or 'power token' for this power type (ex: MANA, FOCUS, etc)
costnumberFull cost including optional cost; Optional cost is cost the spell will use but isn't required (ex: Rogue spell might cost 1CP but have optional cost of up to 5 more)
minCostnumberCost excluding optional cost; This is min required to cast the spell
costPercentnumberCost as a percentage of base maximum resource; May be 0 if the cost is simply a flat cost
costPerSecnumberCost as a percentage of base maximum resource consumed per second, used by channel spells; May be 0 if cost is simply a flat cost
requiredAuraIDnumberAn aura the caster must have for the cost to apply; Usually based on things like active spec or shapeshift form
hasRequiredAuraboolTrue if there is a requiredAuraID and the caster currently has that aura; Caster is either the current player or their pet, depending on spell type

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows