Core/Spell: fix broken Unit::GetHighestExclusiveSameEffectSpellGroupValue

- Affects 3 aura effects currently, should be rewritten with GetTotalAuraModifier maybe?

(cherry picked from commit d44a44abac)
This commit is contained in:
ariel-
2017-04-14 16:52:13 -03:00
committed by funjoker
parent 60824d8c7a
commit 1edfd0d064

View File

@@ -1270,10 +1270,10 @@ void SpellMgr::LoadSpellGroupStackRules()
continue;
}
mSpellGroupStack.emplace(SpellGroup(group_id), SpellGroupStackRule(stack_rule));
// different container for same effect stack rules, need to check effect types
if (stack_rule != SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT)
mSpellGroupStack.emplace(SpellGroup(group_id), SpellGroupStackRule(stack_rule));
else
if (stack_rule == SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT)
sameEffectGroups.push_back(group_id);
++count;