Spell group stack rules tc2

From TrinityCore Wiki
Jump to: navigation, search

Contents

Back to world database list of tables.


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 int(11) unsigned PRI NO 0
stack_rule tinyint(3) signed NO 0


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 SpellGroupStackRule in core:

  • SPELL_GROUP_STACK_RULE_DEFAULT = 0

No stacking rule defined - placeholder

  • SPELL_GROUP_STACK_RULE_EXCLUSIVE = 1

Auras from group can't stack with each other

  • SPELL_GROUP_STACK_RULE_EXCLUSIVE_FROM_SAME_CASTER = 2

Auras from group can't stack with each other when cast by same caster

  • SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT = 3

Same effects of spells will not stack, yet auras will remain on a target.
A spell should be in only 1 group with this stack rule.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox