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
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.
Enum SpellGroupStackRule in the core:
| Value | Name | Description |
|---|---|---|
| 0 | SPELL_GROUP_STACK_RULE_DEFAULT | No stacking rule, the auras stack normally. |
| 1 | SPELL_GROUP_STACK_RULE_EXCLUSIVE | Auras from the group can not stack with each other. A new aura replaces the old one. |
| 2 | SPELL_GROUP_STACK_RULE_EXCLUSIVE_FROM_SAME_CASTER | Auras from the group can not stack with each other when they come from the same caster. |
| 3 | SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT | The auras stack, but for effects of the same type only the strongest one is used. |
| 4 | SPELL_GROUP_STACK_RULE_EXCLUSIVE_HIGHEST | Only the strongest aura from the group is kept. A weaker aura can not be applied while a stronger one is active. |
A short description of what type of spells are in the group and what rule is applied.