summaryrefslogtreecommitdiff
path: root/docs/spell_group_stack_rules.md
blob: c3ae4d72a9e65c96cb4db1a58ed687485f493693 (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
# spell\_group\_stack\_rules

[<-Back-to:World](database-world.md)

**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)

|                                                    |            |                |         |          |             |           |             |
|----------------------------------------------------|------------|----------------|---------|----------|-------------|-----------|-------------|
| **Field**                                          | **Type**   | **Attributes** | **Key** | **Null** | **Default** | **Extra** | **Comment** |
| [group\_id](#spell_group_stack_rules-group_id)     | int(11)    | unsigned       | PRI     | NO       | 0           |           |             |
| [stack\_rule](#spell_group_stack_rules-stack_rule) | tinyint(3) | signed         |         | NO       | 0           |           |             |

**Description of the fields**

### group\_id

Id of group in [spell\_group](spell_group_2130135.html#spell_group-id) 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 SpellGroupStackRule in core:

| Id  | Stack Rule Name                                          | Description                                                              |
|-----|----------------------------------------------------------|--------------------------------------------------------------------------|
| 0   | SPELL\_GROUP\_STACK\_RULE\_DEFAULT                       | No stacking rule defined - placeholder                                   |
| 1   | SPELL\_GROUP\_STACK\_RULE\_EXCLUSIVE                     | Auras from group can't stack with each other                             |
| 2   | SPELL\_GROUP\_STACK\_RULE\_EXCLUSIVE\_FROM\_SAME\_CASTER | Auras from group can't stack with each other when cast by same caster    |
| 3   | SPELL\_GROUP\_STACK\_RULE\_EXCLUSIVE\_SAME\_EFFECT       | Same effects of spells will not stack, yet auras will remain on a target |
| 4   | SPELL\_GROUP\_STACK\_RULE\_EXCLUSIVE\_HIGHEST            | Only Highest effect will remain on target                                |

A spell should be in only 1 group with this stack rule.