mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user