Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo

This commit is contained in:
Shauren
2021-03-11 10:32:03 +01:00
parent f4ff0489ca
commit efdca47aff
11 changed files with 27 additions and 31 deletions

View File

@@ -5950,7 +5950,7 @@ SpellCastResult Spell::CheckCasterAuras(uint32* param1) const
// fill up aura mechanic info to send client proper error message
if (param1)
{
*param1 = aurEff->GetSpellInfo()->GetEffect(aurEff->GetEffIndex())->Mechanic;
*param1 = aurEff->GetSpellEffectInfo()->Mechanic;
if (!*param1)
*param1 = aurEff->GetSpellInfo()->Mechanic;
}