mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Spell: add assert checks on SpellMgr::CheckSpellGroupStackRules
Ref #19319
This commit is contained in:
@@ -432,10 +432,14 @@ bool SpellMgr::AddSameEffectStackRuleSpellGroups(SpellInfo const* spellInfo, int
|
||||
|
||||
SpellGroupStackRule SpellMgr::CheckSpellGroupStackRules(SpellInfo const* spellInfo1, SpellInfo const* spellInfo2) const
|
||||
{
|
||||
ASSERT(spellInfo1);
|
||||
ASSERT(spellInfo2);
|
||||
|
||||
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);
|
||||
std::set<SpellGroup> groups;
|
||||
|
||||
Reference in New Issue
Block a user