summaryrefslogtreecommitdiff
path: root/docs/spell_group_stack_rules.md
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2019-02-26 18:08:42 +0100
committerGitHub <noreply@github.com>2019-02-26 18:08:42 +0100
commit07f4555b2d68397c612ec5ee6611844e4f6d9d21 (patch)
tree4eb8139adec79c179419c12bc4da04e463f04c3a /docs/spell_group_stack_rules.md
parent5de5a3ccf64a174adcec3070cd3bfeb6f6897254 (diff)
parent49bdd146a2c870a4a2e5ae8fd77e90204d950fc8 (diff)
downloadwiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.tar.gz
wiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.tar.bz2
wiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.zip
Merge pull request #8 from azerothcore/tc-bulk-import
Bulk import from TC 335 of DB doc
Diffstat (limited to 'docs/spell_group_stack_rules.md')
-rw-r--r--docs/spell_group_stack_rules.md40
1 files changed, 34 insertions, 6 deletions
diff --git a/docs/spell_group_stack_rules.md b/docs/spell_group_stack_rules.md
index 5f033cf..b771c5f 100644
--- a/docs/spell_group_stack_rules.md
+++ b/docs/spell_group_stack_rules.md
@@ -1,7 +1,35 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [spell_group_stack_rules](spell_group_stack_rules)
+# spell\_group\_stack\_rules
-Column | Type | Description
---- | --- | ---
-Group_id | int(11) unsigned |
-Stack_rule | tinyint(3) |
-Description | varchar(150) |
+`Back-to:World`
+
+**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.