blob: f227f20fca68394f2a97f58e958639ca08997dc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
|
# spell\_dbc
[<-Back-to:World](database-world.md)
**The \`spell\_dbc\` table**
This table contains data regarding serverside spells which are not to be found in Client DBC files as well as **overrides** of the DBC that are meant to improve or fix any spell.
If you want to add more overrides, please first extract the needed SQL spell row using the [node-dbc-reader](https://github.com/wowgaming/node-dbc-reader) then you can use a `UPDATE` query to change the fields that you need to override. You can find a how-to [here](importing-spell-dbc).
Fixes for this table should always contain:
1) the `INSERT IGNORE` query adding the original spell from the DBC (unless that spell is already present in `spell_dbc`)
2) the `UPDATE` query containing the desired overrides
**Spell\_Effect\_ID**
- Effect\_IDs of [Effect1, Effect2 and/or Effect3](spell-effects-reference.md).
**Spell\_Effect\_Apply\_Aura_ID**
- EffectApplyAuraName\_IDs of [EffectApplyAuraName1, EffectApplyAuraName2 and/or EffectApplyAuraName3](spell-aura-reference.md).
**Structure**
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
| ----------------------------- | -------- | ---------- | --- | ---- | ------- | ----- | ------- |
| Id | INT | UNSIGNED | PRI | NO | NULL | | |
| Dispel | TINYINT | UNSIGNED | | NO | 0 | | |
| Mechanic | TINYINT | UNSIGNED | | NO | 0 | | |
| Attributes | INT | UNSIGNED | | NO | 0 | | |
| AttributesEx | INT | UNSIGNED | | NO | 0 | | |
| AttributesEx2 | INT | UNSIGNED | | NO | 0 | | |
| AttributesEx3 | INT | UNSIGNED | | NO | 0 | | |
| AttributesEx4 | INT | UNSIGNED | | NO | 0 | | |
| AttributesEx5 | INT | UNSIGNED | | NO | 0 | | |
| Stances | INT | UNSIGNED | | NO | 0 | | |
| StancesNot | INT | UNSIGNED | | NO | 0 | | |
| Targets | INT | UNSIGNED | | NO | 0 | | |
| CastingTimeIndex | TINYINT | UNSIGNED | | NO | 1 | | |
| AuraInterruptFlags | INT | UNSIGNED | | NO | 0 | | |
| ProcFlags | INT | UNSIGNED | | NO | 0 | | |
| ProcChance | TINYINT | UNSIGNED | | NO | 0 | | |
| ProcCharges | TINYINT | UNSIGNED | | NO | 0 | | |
| MaxLevel | TINYINT | UNSIGNED | | NO | 0 | | |
| BaseLevel | TINYINT | UNSIGNED | | NO | 0 | | |
| SpellLevel | TINYINT | UNSIGNED | | NO | 0 | | |
| DurationIndex | SMALLINT | UNSIGNED | | NO | 0 | | |
| RangeIndex | TINYINT | UNSIGNED | | NO | 1 | | |
| StackAmount | TINYINT | UNSIGNED | | NO | 0 | | |
| EquippedItemClass | INT | SIGNED | | NO | -1 | | |
| EquippedItemSubClassMask | INT | SIGNED | | NO | 0 | | |
| EquippedItemInventoryTypeMask | INT | SIGNED | | NO | 0 | | |
| Effect1 | TINYINT | UNSIGNED | | NO | 0 | | |
| Effect2 | TINYINT | UNSIGNED | | NO | 0 | | |
| Effect3 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectDieSides1 | INT | SIGNED | | NO | 0 | | |
| EffectDieSides2 | INT | SIGNED | | NO | 0 | | |
| EffectDieSides3 | INT | SIGNED | | NO | 0 | | |
| EffectRealPointsPerLevel1 | FLOAT | SIGNED | | NO | 0 | | |
| EffectRealPointsPerLevel2 | FLOAT | SIGNED | | NO | 0 | | |
| EffectRealPointsPerLevel3 | FLOAT | SIGNED | | NO | 0 | | |
| EffectBasePoints1 | INT | SIGNED | | NO | 0 | | |
| EffectBasePoints2 | INT | SIGNED | | NO | 0 | | |
| EffectBasePoints3 | INT | SIGNED | | NO | 0 | | |
| EffectMechanic1 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectMechanic2 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectMechanic3 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetA1 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetA2 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetA3 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetB1 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetB2 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectImplicitTargetB3 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectRadiusIndex1 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectRadiusIndex2 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectRadiusIndex3 | TINYINT | UNSIGNED | | NO | 0 | | |
| EffectApplyAuraName1 | SMALLINT | UNSIGNED | | NO | 0 | | |
| EffectApplyAuraName2 | SMALLINT | UNSIGNED | | NO | 0 | | |
| EffectApplyAuraName3 | SMALLINT | UNSIGNED | | NO | 0 | | |
| EffectAmplitude1 | INT | SIGNED | | NO | 0 | | |
| EffectAmplitude2 | INT | SIGNED | | NO | 0 | | |
| EffectAmplitude3 | INT | SIGNED | | NO | 0 | | |
| EffectMultipleValue1 | FLOAT | SIGNED | | NO | 0 | | |
| EffectMultipleValue2 | FLOAT | SIGNED | | NO | 0 | | |
| EffectMultipleValue3 | FLOAT | SIGNED | | NO | 0 | | |
| EffectMiscValue1 | INT | SIGNED | | NO | 0 | | |
| EffectMiscValue2 | INT | SIGNED | | NO | 0 | | |
| EffectMiscValue3 | INT | SIGNED | | NO | 0 | | |
| EffectMiscValueB1 | INT | SIGNED | | NO | 0 | | |
| EffectMiscValueB2 | INT | SIGNED | | NO | 0 | | |
| EffectMiscValueB3 | INT | SIGNED | | NO | 0 | | |
| EffectTriggerSpell1 | INT | UNSIGNED | | NO | 0 | | |
| EffectTriggerSpell2 | INT | UNSIGNED | | NO | 0 | | |
| EffectTriggerSpell3 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskA1 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskA2 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskA3 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskB1 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskB2 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskB3 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskC1 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskC2 | INT | UNSIGNED | | NO | 0 | | |
| EffectSpellClassMaskC3 | INT | UNSIGNED | | NO | 0 | | |
| MaxTargetLevel | TINYINT | UNSIGNED | | NO | 0 | | |
| SpellFamilyName | TINYINT | UNSIGNED | | NO | 0 | | |
| SpellFamilyFlags1 | INT | UNSIGNED | | NO | 0 | | |
| SpellFamilyFlags2 | INT | UNSIGNED | | NO | 0 | | |
| SpellFamilyFlags3 | INT | UNSIGNED | | NO | 0 | | |
| MaxAffectedTargets | TINYINT | UNSIGNED | | NO | 0 | | |
| DmgClass | TINYINT | UNSIGNED | | NO | 0 | | |
| PreventionType | TINYINT | UNSIGNED | | NO | 0 | | |
| DmgMultiplier1 | FLOAT | SIGNED | | NO | 0 | | |
| DmgMultiplier2 | FLOAT | SIGNED | | NO | 0 | | |
| DmgMultiplier3 | FLOAT | SIGNED | | NO | 0 | | |
| AreaGroupId | INT | SIGNED | | NO | 0 | | |
| SchoolMask | INT | UNSIGNED | | NO | 0 | | |
| Comment | text | SIGNED | | NO | NULL | | |
**Description of the fields**
### Id
The id of the Spell.
### Dispel
`field-no-description|2`
### Mechanic
`field-no-description|3`
### Attributes
`field-no-description|4`
### AttributesEx
`field-no-description|5`
### Stances
`field-no-description|6`
### StancesNot
`field-no-description|7`
### Targets
`field-no-description|8`
### CastingTimeIndex
`field-no-description|9`
### AuraInterruptFlags
`field-no-description|10`
### ProcFlags
`field-no-description|11`
### ProcChance
`field-no-description|12`
### ProcCharges
`field-no-description|13`
### MaxLevel
`field-no-description|14`
### BaseLevel
`field-no-description|15`
### SpellLevel
`field-no-description|16`
### DurationIndex
`field-no-description|17`
### RangeIndex
`field-no-description|18`
### StackAmount
`field-no-description|19`
### EquippedItemClass
`field-no-description|20`
### EquippedItemSubClassMask
`field-no-description|21`
### EquippedItemInventoryTypeMask
`field-no-description|22`
### Effect
[Effect1, Effect2 and Effect3. Effect\_ID of the Spell\_Effect. A Spell can only have up to three Spell\_Effects.](spell-effects-reference.md)
### EffectDieSides
`field-no-description|24`
### EffectRealPointsPerLevel
`field-no-description|25`
### EffectBasePoints
`field-no-description|26`
### EffectMechanic
`field-no-description|27`
### EffectImplicitTargetA
`field-no-description|28`
### EffectImplicitTargetB
`field-no-description|29`
### EffectRadiusIndex
`field-no-description|30`
### EffectApplyAuraName
[EffectApplyAuraName1, EffectApplyAuraName2 and EffectApplyAuraName3. EffectApplyAuraName\_ID of the Spell\_Effect\_Apply\_Aura.](spell-aura-reference.md)
### EffectAmplitude
`field-no-description|32`
### EffectMultipleValue
`field-no-description|33`
### EffectMiscValue
`field-no-description|34`
### EffectMiscValueB
`field-no-description|35`
### EffectTriggerSpell
`field-no-description|36`
### EffectSpellClassMaskA
`field-no-description|37`
### EffectSpellClassMaskB
`field-no-description|38`
### EffectSpellClassMaskC
`field-no-description|39`
### MaxTargetLevel
`field-no-description|40`
### SpellFamilyName
`field-no-description|41`
### SpellFamilyFlags
`field-no-description|42`
### MaxAffectedTarget
`field-no-description|43`
### DmgClass
`field-no-description|44`
### PreventionType
`field-no-description|45`
### DmgMultiplier
`field-no-description|46`
### AreaGroupId
`field-no-description|47`
### SchoolMask
`field-no-description|48`
### Comment
`field-no-description|49`
|