spell_group_stack_rules
The `spell_group_stack_rules` table
Table defines if auras in one spell_group can't stack with each other.
Notes: The table doesn't affect persistent area auras stacking or passive auras stacking (they can stack always) or spells belonging to same spell_rank (they are always subject of SPELL_GROUP_STACK_RULE_EXCLUSIVE rule)
Table Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| group_id | INT | UNSIGNED | PRI | NO | 0 | ||
| stack_rule | TINYINT | SIGNED | NO | 0 | |||
| description | VARCHAR(150) | NO |
Description of the fields
group_id
Id of group in spell_group table. The spell_group may contain another spell_groups inside, if so stacking rule needs to be defined for these groups separately.
stack_rule
Enum SpellGroupStackFlags in core:
| Id | Stack Rule Name | Description | |
|---|---|---|---|
| 0 | 0x00 | SPELL_GROUP_STACK_RULE_DEFAULT | No stacking rule defined - placeholder |
| 1 | 0x01 | SPELL_GROUP_STACK_RULE_EXCLUSIVE | Auras from group can't stack with each other |
| 2 | 0x02 | SPELL_GROUP_STACK_FLAG_NOT_SAME_CASTER | |
| 4 | 0x04 | SPELL_GROUP_STACK_FLAG_FLAGGED | |
| 8 | 0x08 | SPELL_GROUP_STACK_FLAG_NEVER_STACK | |
| 10 | 0x10 | SPELL_GROUP_STACK_FLAG_EFFECT_EXCLUSIVE | |
| 20 | 0x20 | SPELL_GROUP_STACK_FLAG_MAX | |
| // Internal use | |||
| 100 | 0x100 | SPELL_GROUP_STACK_FLAG_FORCED_STRONGEST | |
| 200 | 0x200 | SPELL_GROUP_STACK_FLAG_FORCED_WEAKEST |
description
A short description of what type of spells are in the group and what rule is applied.