AzerothCore
Pages :

spell_dbc

<-Back-to:World

The `spell_dbc` table

This table has the same columns as Spell.dbc. The core loads it after the DBC file: a row adds a spell that is not in Spell.dbc, for example a serverside spell, or changes the spell with the same ID.

Every column but ID can be NULL. A NULL column keeps the value from the DBC file, so a row that changes a spell from Spell.dbc only needs its ID and the columns it changes. An empty text column also keeps the text from the DBC file. In a row for a new spell there is nothing to keep, so a NULL column reads as 0, or as empty text.

Columns left out of an INSERT are NULL. For example, this row sets only the Attributes of Heroic Strike (Rank 1), and every other column keeps its value from Spell.dbc:

DELETE FROM `spell_dbc` WHERE `ID` = 78;
INSERT INTO `spell_dbc` (`ID`, `Attributes`) VALUES (78, 327696);

Table Structure

Field Type Attributes Key Null Default Extra Comment
ID INT PRI NO 0
Category INT UNSIGNED YES NULL
DispelType INT UNSIGNED YES NULL
Mechanic INT UNSIGNED YES NULL
Attributes INT UNSIGNED YES NULL
AttributesEx INT UNSIGNED YES NULL
AttributesEx2 INT UNSIGNED YES NULL
AttributesEx3 INT UNSIGNED YES NULL
AttributesEx4 INT UNSIGNED YES NULL
AttributesEx5 INT UNSIGNED YES NULL
AttributesEx6 INT UNSIGNED YES NULL
AttributesEx7 INT UNSIGNED YES NULL
ShapeshiftMask BIGINT UNSIGNED YES NULL
unk_320_2 INT YES NULL
ShapeshiftExclude BIGINT UNSIGNED YES NULL
unk_320_3 INT YES NULL
Targets INT UNSIGNED YES NULL
TargetCreatureType INT UNSIGNED YES NULL
RequiresSpellFocus INT UNSIGNED YES NULL
FacingCasterFlags INT UNSIGNED YES NULL
CasterAuraState INT UNSIGNED YES NULL
TargetAuraState INT UNSIGNED YES NULL
ExcludeCasterAuraState INT UNSIGNED YES NULL
ExcludeTargetAuraState INT UNSIGNED YES NULL
CasterAuraSpell INT UNSIGNED YES NULL
TargetAuraSpell INT UNSIGNED YES NULL
ExcludeCasterAuraSpell INT UNSIGNED YES NULL
ExcludeTargetAuraSpell INT UNSIGNED YES NULL
CastingTimeIndex INT UNSIGNED YES NULL
RecoveryTime INT UNSIGNED YES NULL
CategoryRecoveryTime INT UNSIGNED YES NULL
InterruptFlags INT UNSIGNED YES NULL
AuraInterruptFlags INT UNSIGNED YES NULL
ChannelInterruptFlags INT UNSIGNED YES NULL
ProcTypeMask INT UNSIGNED YES NULL
ProcChance INT UNSIGNED YES NULL
ProcCharges INT UNSIGNED YES NULL
MaxLevel INT UNSIGNED YES NULL
BaseLevel INT UNSIGNED YES NULL
SpellLevel INT UNSIGNED YES NULL
DurationIndex INT UNSIGNED YES NULL
PowerType INT YES NULL
ManaCost INT UNSIGNED YES NULL
ManaCostPerLevel INT UNSIGNED YES NULL
ManaPerSecond INT UNSIGNED YES NULL
ManaPerSecondPerLevel INT UNSIGNED YES NULL
RangeIndex INT UNSIGNED YES NULL
Speed FLOAT YES NULL
ModalNextSpell INT UNSIGNED YES NULL
CumulativeAura INT UNSIGNED YES NULL
Totem_1 INT UNSIGNED YES NULL
Totem_2 INT UNSIGNED YES NULL
Reagent_1 INT YES NULL
Reagent_2 INT YES NULL
Reagent_3 INT YES NULL
Reagent_4 INT YES NULL
Reagent_5 INT YES NULL
Reagent_6 INT YES NULL
Reagent_7 INT YES NULL
Reagent_8 INT YES NULL
ReagentCount_1 INT YES NULL
ReagentCount_2 INT YES NULL
ReagentCount_3 INT YES NULL
ReagentCount_4 INT YES NULL
ReagentCount_5 INT YES NULL
ReagentCount_6 INT YES NULL
ReagentCount_7 INT YES NULL
ReagentCount_8 INT YES NULL
EquippedItemClass INT YES NULL
EquippedItemSubclass INT YES NULL
EquippedItemInvTypes INT YES NULL
Effect_1 INT UNSIGNED YES NULL
Effect_2 INT UNSIGNED YES NULL
Effect_3 INT UNSIGNED YES NULL
EffectDieSides_1 INT YES NULL
EffectDieSides_2 INT YES NULL
EffectDieSides_3 INT YES NULL
EffectRealPointsPerLevel_1 FLOAT YES NULL
EffectRealPointsPerLevel_2 FLOAT YES NULL
EffectRealPointsPerLevel_3 FLOAT YES NULL
EffectBasePoints_1 INT YES NULL
EffectBasePoints_2 INT YES NULL
EffectBasePoints_3 INT YES NULL
EffectMechanic_1 INT UNSIGNED YES NULL
EffectMechanic_2 INT UNSIGNED YES NULL
EffectMechanic_3 INT UNSIGNED YES NULL
ImplicitTargetA_1 INT UNSIGNED YES NULL
ImplicitTargetA_2 INT UNSIGNED YES NULL
ImplicitTargetA_3 INT UNSIGNED YES NULL
ImplicitTargetB_1 INT UNSIGNED YES NULL
ImplicitTargetB_2 INT UNSIGNED YES NULL
ImplicitTargetB_3 INT UNSIGNED YES NULL
EffectRadiusIndex_1 INT UNSIGNED YES NULL
EffectRadiusIndex_2 INT UNSIGNED YES NULL
EffectRadiusIndex_3 INT UNSIGNED YES NULL
EffectAura_1 INT UNSIGNED YES NULL
EffectAura_2 INT UNSIGNED YES NULL
EffectAura_3 INT UNSIGNED YES NULL
EffectAuraPeriod_1 INT UNSIGNED YES NULL
EffectAuraPeriod_2 INT UNSIGNED YES NULL
EffectAuraPeriod_3 INT UNSIGNED YES NULL
EffectMultipleValue_1 FLOAT YES NULL
EffectMultipleValue_2 FLOAT YES NULL
EffectMultipleValue_3 FLOAT YES NULL
EffectChainTargets_1 INT UNSIGNED YES NULL
EffectChainTargets_2 INT UNSIGNED YES NULL
EffectChainTargets_3 INT UNSIGNED YES NULL
EffectItemType_1 INT UNSIGNED YES NULL
EffectItemType_2 INT UNSIGNED YES NULL
EffectItemType_3 INT UNSIGNED YES NULL
EffectMiscValue_1 INT YES NULL
EffectMiscValue_2 INT YES NULL
EffectMiscValue_3 INT YES NULL
EffectMiscValueB_1 INT YES NULL
EffectMiscValueB_2 INT YES NULL
EffectMiscValueB_3 INT YES NULL
EffectTriggerSpell_1 INT UNSIGNED YES NULL
EffectTriggerSpell_2 INT UNSIGNED YES NULL
EffectTriggerSpell_3 INT UNSIGNED YES NULL
EffectPointsPerCombo_1 FLOAT YES NULL
EffectPointsPerCombo_2 FLOAT YES NULL
EffectPointsPerCombo_3 FLOAT YES NULL
EffectSpellClassMaskA_1 INT UNSIGNED YES NULL
EffectSpellClassMaskA_2 INT UNSIGNED YES NULL
EffectSpellClassMaskA_3 INT UNSIGNED YES NULL
EffectSpellClassMaskB_1 INT UNSIGNED YES NULL
EffectSpellClassMaskB_2 INT UNSIGNED YES NULL
EffectSpellClassMaskB_3 INT UNSIGNED YES NULL
EffectSpellClassMaskC_1 INT UNSIGNED YES NULL
EffectSpellClassMaskC_2 INT UNSIGNED YES NULL
EffectSpellClassMaskC_3 INT UNSIGNED YES NULL
SpellVisualID_1 INT UNSIGNED YES NULL
SpellVisualID_2 INT UNSIGNED YES NULL
SpellIconID INT UNSIGNED YES NULL
ActiveIconID INT UNSIGNED YES NULL
SpellPriority INT UNSIGNED YES NULL
Name_Lang_enUS VARCHAR(100) YES NULL
Name_Lang_enGB VARCHAR(100) YES NULL
Name_Lang_koKR VARCHAR(100) YES NULL
Name_Lang_frFR VARCHAR(100) YES NULL
Name_Lang_deDE VARCHAR(100) YES NULL
Name_Lang_enCN VARCHAR(100) YES NULL
Name_Lang_zhCN VARCHAR(100) YES NULL
Name_Lang_enTW VARCHAR(100) YES NULL
Name_Lang_zhTW VARCHAR(100) YES NULL
Name_Lang_esES VARCHAR(100) YES NULL
Name_Lang_esMX VARCHAR(100) YES NULL
Name_Lang_ruRU VARCHAR(100) YES NULL
Name_Lang_ptPT VARCHAR(100) YES NULL
Name_Lang_ptBR VARCHAR(100) YES NULL
Name_Lang_itIT VARCHAR(100) YES NULL
Name_Lang_Unk VARCHAR(100) YES NULL
Name_Lang_Mask INT UNSIGNED YES NULL
NameSubtext_Lang_enUS VARCHAR(100) YES NULL
NameSubtext_Lang_enGB VARCHAR(100) YES NULL
NameSubtext_Lang_koKR VARCHAR(100) YES NULL
NameSubtext_Lang_frFR VARCHAR(100) YES NULL
NameSubtext_Lang_deDE VARCHAR(100) YES NULL
NameSubtext_Lang_enCN VARCHAR(100) YES NULL
NameSubtext_Lang_zhCN VARCHAR(100) YES NULL
NameSubtext_Lang_enTW VARCHAR(100) YES NULL
NameSubtext_Lang_zhTW VARCHAR(100) YES NULL
NameSubtext_Lang_esES VARCHAR(100) YES NULL
NameSubtext_Lang_esMX VARCHAR(100) YES NULL
NameSubtext_Lang_ruRU VARCHAR(100) YES NULL
NameSubtext_Lang_ptPT VARCHAR(100) YES NULL
NameSubtext_Lang_ptBR VARCHAR(100) YES NULL
NameSubtext_Lang_itIT VARCHAR(100) YES NULL
NameSubtext_Lang_Unk VARCHAR(100) YES NULL
NameSubtext_Lang_Mask INT UNSIGNED YES NULL
Description_Lang_enUS TEXT YES NULL
Description_Lang_enGB TEXT YES NULL
Description_Lang_koKR TEXT YES NULL
Description_Lang_frFR TEXT YES NULL
Description_Lang_deDE TEXT YES NULL
Description_Lang_enCN TEXT YES NULL
Description_Lang_zhCN TEXT YES NULL
Description_Lang_enTW TEXT YES NULL
Description_Lang_zhTW TEXT YES NULL
Description_Lang_esES TEXT YES NULL
Description_Lang_esMX TEXT YES NULL
Description_Lang_ruRU TEXT YES NULL
Description_Lang_ptPT TEXT YES NULL
Description_Lang_ptBR TEXT YES NULL
Description_Lang_itIT TEXT YES NULL
Description_Lang_Unk TEXT YES NULL
Description_Lang_Mask INT UNSIGNED YES NULL
AuraDescription_Lang_enUS VARCHAR(550) YES NULL
AuraDescription_Lang_enGB VARCHAR(550) YES NULL
AuraDescription_Lang_koKR VARCHAR(550) YES NULL
AuraDescription_Lang_frFR VARCHAR(550) YES NULL
AuraDescription_Lang_deDE VARCHAR(550) YES NULL
AuraDescription_Lang_enCN VARCHAR(550) YES NULL
AuraDescription_Lang_zhCN VARCHAR(550) YES NULL
AuraDescription_Lang_enTW VARCHAR(550) YES NULL
AuraDescription_Lang_zhTW VARCHAR(550) YES NULL
AuraDescription_Lang_esES VARCHAR(550) YES NULL
AuraDescription_Lang_esMX VARCHAR(550) YES NULL
AuraDescription_Lang_ruRU VARCHAR(550) YES NULL
AuraDescription_Lang_ptPT VARCHAR(550) YES NULL
AuraDescription_Lang_ptBR VARCHAR(550) YES NULL
AuraDescription_Lang_itIT VARCHAR(550) YES NULL
AuraDescription_Lang_Unk VARCHAR(100) YES NULL
AuraDescription_Lang_Mask INT UNSIGNED YES NULL
ManaCostPct INT UNSIGNED YES NULL
StartRecoveryCategory INT UNSIGNED YES NULL
StartRecoveryTime INT UNSIGNED YES NULL
MaxTargetLevel INT UNSIGNED YES NULL
SpellClassSet INT UNSIGNED YES NULL
SpellClassMask_1 INT UNSIGNED YES NULL
SpellClassMask_2 INT UNSIGNED YES NULL
SpellClassMask_3 INT UNSIGNED YES NULL
MaxTargets INT UNSIGNED YES NULL
DefenseType INT UNSIGNED YES NULL
PreventionType INT UNSIGNED YES NULL
StanceBarOrder INT UNSIGNED YES NULL
EffectChainAmplitude_1 FLOAT YES NULL
EffectChainAmplitude_2 FLOAT YES NULL
EffectChainAmplitude_3 FLOAT YES NULL
MinFactionID INT UNSIGNED YES NULL
MinReputation INT UNSIGNED YES NULL
RequiredAuraVision INT UNSIGNED YES NULL
RequiredTotemCategoryID_1 INT UNSIGNED YES NULL
RequiredTotemCategoryID_2 INT UNSIGNED YES NULL
RequiredAreasID INT YES NULL
SchoolMask INT UNSIGNED YES NULL
RuneCostID INT UNSIGNED YES NULL
SpellMissileID INT UNSIGNED YES NULL
PowerDisplayID INT YES NULL
EffectBonusMultiplier_1 FLOAT YES NULL
EffectBonusMultiplier_2 FLOAT YES NULL
EffectBonusMultiplier_3 FLOAT YES NULL
SpellDescriptionVariableID INT UNSIGNED YES NULL
SpellDifficultyID INT UNSIGNED YES NULL

Description of the fields

Columns that end in _1, _2 or _3 hold one value per spell effect, and are described together. The core loads the columns that are not marked "Not used by the core", the others only need to be filled in so the row matches the layout of Spell.dbc.

ID

The ID of the spell. A row with the same ID as a spell in Spell.dbc overrides the columns of that spell that are not NULL. Rows with a negative ID are skipped and logged as an error.

Category

ID from SpellCategory.dbc. Spells in the same category share a cooldown, see CategoryRecoveryTime.

DispelType

The dispel type of the spell, which sets what can dispel it. See Dispel Type.

Mechanic

The mechanic of the spell, for example stun or root. Used for immunities and diminishing returns. See Spell Mechanic.

Attributes

Flags from the SpellAttr0 enum (SPELL_ATTR0_*) in SharedDefines.h.

AttributesEx

Flags from the SpellAttr1 enum (SPELL_ATTR1_*) in SharedDefines.h.

AttributesEx2

Flags from the SpellAttr2 enum (SPELL_ATTR2_*) in SharedDefines.h.

AttributesEx3

Flags from the SpellAttr3 enum (SPELL_ATTR3_*) in SharedDefines.h.

AttributesEx4

Flags from the SpellAttr4 enum (SPELL_ATTR4_*) in SharedDefines.h.

AttributesEx5

Flags from the SpellAttr5 enum (SPELL_ATTR5_*) in SharedDefines.h.

AttributesEx6

Flags from the SpellAttr6 enum (SPELL_ATTR6_*) in SharedDefines.h.

AttributesEx7

Flags from the SpellAttr7 enum (SPELL_ATTR7_*) in SharedDefines.h.

ShapeshiftMask

Bitmask of the shapeshift forms the caster must be in to cast the spell. Each form sets the bit 1 << (form - 1), with the form IDs from SpellShapeshiftForm.dbc.

unk_320

unk_320_2 and unk_320_3. Not used by the core.

ShapeshiftExclude

Bitmask of the shapeshift forms the caster can not be in to cast the spell. Uses the same bits as ShapeshiftMask.

Targets

Flags for the kinds of targets the spell can be cast on (TARGET_FLAG_* in SpellInfo.h), for example a unit, an item or a location.

TargetCreatureType

Bitmask of the creature types the spell can target. Each type sets the bit 1 << (type - 1), see Creature Type. 0 means any type.

RequiresSpellFocus

ID from SpellFocusObject.dbc. The caster must be near a gameobject of this spell focus type, for example an anvil or a forge.

FacingCasterFlags

If 1, a player caster must face the target to cast the spell.

CasterAuraState

Aura state (AURA_STATE_* in SharedDefines.h) the caster must have to cast the spell.

TargetAuraState

Aura state the target must have.

ExcludeCasterAuraState

Aura state the caster must not have.

ExcludeTargetAuraState

Aura state the target must not have.

CasterAuraSpell

ID of a spell whose aura the caster must have.

TargetAuraSpell

ID of a spell whose aura the target must have.

ExcludeCasterAuraSpell

ID of a spell whose aura the caster must not have.

ExcludeTargetAuraSpell

ID of a spell whose aura the target must not have.

CastingTimeIndex

ID from SpellCastTimes.dbc, which sets the cast time. 1 is an instant cast.

RecoveryTime

Cooldown of the spell in milliseconds.

CategoryRecoveryTime

Cooldown in milliseconds that is started for all spells in the same Category.

InterruptFlags

Flags for what interrupts the cast (SPELL_INTERRUPT_FLAG_* in SpellDefines.h), for example movement or taking damage.

AuraInterruptFlags

Flags for what removes the aura from the target (AURA_INTERRUPT_FLAG_* in SpellDefines.h).

ChannelInterruptFlags

Flags for what interrupts a channeled spell. Uses the same values as AuraInterruptFlags.

ProcTypeMask

Flags for the events that make the aura proc. See spell_proc.ProcFlags.

ProcChance

Chance in percent that the aura procs.

ProcCharges

Number of times the aura can proc before it is removed. 0 means no limit.

MaxLevel

Level after which the spell stops getting stronger from the caster's level.

BaseLevel

Level the spell's level-based values start from.

SpellLevel

Level the spell is learned at.

DurationIndex

ID from SpellDuration.dbc, which sets the duration of the aura.

PowerType

The power the spell costs. See Power Type.

ManaCost

Flat power cost of the spell.

ManaCostPerLevel

Power cost added per level of the caster.

ManaPerSecond

Power drained per second while the spell is channeled.

ManaPerSecondPerLevel

Power drained per second per level of the caster.

RangeIndex

ID from SpellRange.dbc, which sets the range of the spell.

Speed

Travel speed of the spell's missile in yards per second. 0 means the spell hits instantly.

ModalNextSpell

Not used by the core.

CumulativeAura

Maximum number of stacks of the aura.

Totem

Totem_1 and Totem_2. Item IDs of tools the caster must have in their bags to cast the spell.

Reagent

Reagent_1 to Reagent_8. Item IDs of reagents the spell uses.

ReagentCount

ReagentCount_1 to ReagentCount_8. Number of each Reagent the spell uses.

EquippedItemClass

Item class the caster must have equipped, see item_template.class. -1 means no item is needed.

EquippedItemSubclass

Bitmask of the item subclasses of EquippedItemClass that are allowed. Each subclass sets the bit 1 << subclass.

EquippedItemInvTypes

Bitmask of the inventory types that are allowed, see item_template.InventoryType. Each type sets the bit 1 << type.

Effect

The effect of each of the three spell effects. See Spell Effects Reference.

EffectDieSides

Random value added to EffectBasePoints. The effect's value is between BasePoints + 1 and BasePoints + DieSides.

EffectRealPointsPerLevel

Value added to the effect per level of the caster above BaseLevel, up to MaxLevel.

EffectBasePoints

The base value of the effect. The actual value is one higher, see EffectDieSides.

EffectMechanic

Mechanic of the effect. Overrides the spell's Mechanic for this effect.

ImplicitTargetA

Target type of the effect (TARGET_* in SharedDefines.h), for example the caster or the selected target.

ImplicitTargetB

Second target type of the effect, for example the units in an area around the target selected by ImplicitTargetA.

EffectRadiusIndex

ID from SpellRadius.dbc, which sets the radius of area effects.

EffectAura

The aura applied by an Apply Aura effect. See Spell Aura Reference.

EffectAuraPeriod

Time in milliseconds between the ticks of a periodic aura.

EffectMultipleValue

Multiplier for effects that convert a value, for example the health gained per point of mana drained.

EffectChainTargets

Number of targets a chain effect can jump to.

EffectItemType

Item ID created by a Create Item effect.

EffectMiscValue

Extra value used by the effect or aura, for example a creature entry or a school mask. See Spell Effects Reference and Spell Aura Reference.

EffectMiscValueB

Second extra value used by the effect or aura.

EffectTriggerSpell

ID of a spell the effect triggers.

EffectPointsPerCombo

Value added to the effect per combo point.

EffectSpellClassMaskA

First 32 bits of the spell family mask the effect affects. Together with EffectSpellClassMaskB and EffectSpellClassMaskC it selects the spells of the same SpellClassSet that an aura modifies.

EffectSpellClassMaskB

Second 32 bits of the spell family mask. See EffectSpellClassMaskA.

EffectSpellClassMaskC

Third 32 bits of the spell family mask. See EffectSpellClassMaskA.

SpellVisualID

SpellVisualID_1 and SpellVisualID_2. IDs from SpellVisual.dbc for the visual effects of the spell.

SpellIconID

ID from SpellIcon.dbc for the icon of the spell.

ActiveIconID

ID from SpellIcon.dbc for the icon shown while the spell is active.

SpellPriority

Not used by the core.

Name_Lang

Name_Lang_enUS to Name_Lang_Unk, one column per client locale, and Name_Lang_Mask. The name of the spell. The mask is not used by the core.

NameSubtext_Lang

NameSubtext_Lang_enUS to NameSubtext_Lang_Unk and NameSubtext_Lang_Mask. The rank text of the spell, for example "Rank 1". The mask is not used by the core.

Description_Lang

Description_Lang_enUS to Description_Lang_Unk and Description_Lang_Mask. The description of the spell. Not used by the core.

AuraDescription_Lang

AuraDescription_Lang_enUS to AuraDescription_Lang_Unk and AuraDescription_Lang_Mask. The tooltip of the aura. Not used by the core.

ManaCostPct

Power cost in percent of the caster's base power. Used instead of ManaCost if set.

StartRecoveryCategory

Global cooldown category of the spell. 133 is the normal global cooldown.

StartRecoveryTime

Global cooldown the spell starts, in milliseconds.

MaxTargetLevel

Highest level a target can have to be affected by the spell. 0 means no limit.

SpellClassSet

The spell family, usually the class the spell belongs to. See spell_proc.SpellFamilyName.

SpellClassMask

SpellClassMask_1 to SpellClassMask_3. The 96 bit spell family mask of the spell. Auras use it together with SpellClassSet to select the spells they modify, see EffectSpellClassMaskA.

MaxTargets

Maximum number of targets the spell can hit. 0 means no limit.

DefenseType

Value Damage class
0 None
1 Magic
2 Melee
3 Ranged

Sets how the spell hits, for example whether it can be dodged or resisted.

PreventionType

Value Prevention type
0 None
1 Silence. The spell can not be cast while silenced.
2 Pacify. The spell can not be cast while pacified.

StanceBarOrder

Not used by the core.

EffectChainAmplitude

Multiplier applied to the effect's value each time a chain effect jumps to the next target.

MinFactionID

Not used by the core.

MinReputation

Not used by the core.

RequiredAuraVision

Not used by the core.

RequiredTotemCategoryID

RequiredTotemCategoryID_1 and RequiredTotemCategoryID_2. IDs from TotemCategory.dbc of tools the caster must have, for example a Blacksmith Hammer.

RequiredAreasID

ID from AreaGroup.dbc. The spell can only be cast in these areas. 0 means anywhere.

SchoolMask

The school of the spell. See School Mask.

RuneCostID

ID from SpellRuneCost.dbc, which sets the rune cost of Death Knight spells.

SpellMissileID

Not used by the core.

PowerDisplayID

Not used by the core.

EffectBonusMultiplier

Multiplier for the bonus the effect gets from spell power or attack power.

SpellDescriptionVariableID

Not used by the core.

SpellDifficultyID

Not used by the core. Spell difficulties are set in spelldifficulty_dbc.