Core/Unit: added GetTotalAuraXXX overloads taking a predicate - Redefined existing overloads to use the predicate logic, avoids code duplication and not checking same stack rules
This commit is contained in:
@@ -360,9 +360,8 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
public bool AddSameEffectStackRuleSpellGroups(SpellInfo spellInfo, int amount, out Dictionary<SpellGroup, int> groups)
|
||||
public bool AddSameEffectStackRuleSpellGroups(SpellInfo spellInfo, int amount, Dictionary<SpellGroup, int> groups)
|
||||
{
|
||||
groups = new Dictionary<SpellGroup, int>();
|
||||
uint spellId = spellInfo.GetFirstRankSpell().Id;
|
||||
var spellGroup = GetSpellSpellGroupMapBounds(spellId);
|
||||
// Find group with SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT if it belongs to one
|
||||
|
||||
Reference in New Issue
Block a user