Spell group tc2
From TrinityCore Wiki
|
Back to world database list of tables.
The `spell_group` table
Table used to group spells for varius checks in the core. One spell may be added to many groups, but can occur in one group only once.
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
| id | int(11) | unsigned | PRI | NO | 0 | ||
| spell_id | int(11) | signed | PRI | NO | 0 |
Description of the fields
id
Group identifier Rules of assigning id:
- if group is going to be used in core code, use first avalible entry below 1000 and add enum value to SpellGroup enum in SpellMgr.h
- if group is not going to be used in core code, use lowest avalible entry higher than 1000
spell_id
SpellId from Spell.dbc or spell_group id prefixed with "-". If spell is added to spell_ranks, spell_id has to be first rank of that spell.