Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo
Port From (https://github.com/TrinityCore/TrinityCore/commit/efdca47aff354079bc73d248e022c2e914d94e7b)
This commit is contained in:
@@ -5539,7 +5539,7 @@ namespace Game.Spells
|
||||
foundNotMechanic = true;
|
||||
|
||||
// fill up aura mechanic info to send client proper error message
|
||||
_param1 = (uint)aurEff.GetSpellInfo().GetEffect(aurEff.GetEffIndex()).Mechanic;
|
||||
_param1 = (uint)aurEff.GetSpellEffectInfo().Mechanic;
|
||||
if (_param1 == 0)
|
||||
_param1 = (uint)aurEff.GetSpellInfo().Mechanic;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user