Core/Auras: don't skip stack rule check whenever spells have same ID

- The auras might not have the same amounts due to spellmods

Closes #1626
This commit is contained in:
ariel-
2017-04-14 19:07:11 -03:00
committed by Aokromes
parent fd19577d7d
commit a3538f4dbe
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
UPDATE `spell_group_stack_rules` SET `stack_rule`=3 WHERE `group_id`=1025;
DELETE FROM `spell_group_stack_rules` WHERE `group_id` IN (1023,1024);
INSERT INTO `spell_group_stack_rules` (`group_id`, `stack_rule`) VALUES
(1023, 4),
(1024, 4);

View File

@@ -735,8 +735,6 @@ SpellGroupStackRule SpellMgr::CheckSpellGroupStackRules(SpellInfo const* spellIn
uint32 spellid_1 = spellInfo1->GetFirstRankSpell()->Id;
uint32 spellid_2 = spellInfo2->GetFirstRankSpell()->Id;
if (spellid_1 == spellid_2)
return SPELL_GROUP_STACK_RULE_DEFAULT;
// find SpellGroups which are common for both spells
SpellSpellGroupMapBounds spellGroup1 = GetSpellSpellGroupMapBounds(spellid_1);