Core/Spells: Begin unifying spell effect access api with master branch

* Introduce SpellInfo::GetEffects and SpellInfo::GetEffect functoins
This commit is contained in:
Shauren
2021-08-28 23:42:25 +02:00
parent 203f175ec9
commit 4c59532865
9 changed files with 251 additions and 230 deletions

View File

@@ -6295,7 +6295,7 @@ bool Spell::CheckSpellCancelsAuraEffect(AuraType auraType, uint32* param1) const
for (AuraEffect const* aurEff : auraEffects)
{
SpellInfo const* auraInfo = aurEff->GetSpellInfo();
if (m_spellInfo->SpellCancelsAuraEffect(auraInfo, aurEff->GetEffIndex()))
if (m_spellInfo->SpellCancelsAuraEffect(aurEff))
continue;
if (param1)