diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a58c85b66..b37866766 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3345,6 +3345,7 @@ bool Unit::AddAura(Aura *Aur) } SpellEntry const* aurSpellInfo = Aur->GetSpellProto(); + AuraType aurName = Aur->GetModifier()->m_auraname; spellEffectPair spair = spellEffectPair(Aur->GetId(), Aur->GetEffIndex()); AuraMap::iterator i = m_Auras.find( spair ); @@ -3372,7 +3373,7 @@ bool Unit::AddAura(Aura *Aur) } bool stop = false; - switch(aurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]) + switch(aurName) { // DoT/HoT/etc case SPELL_AURA_PERIODIC_DAMAGE: // allow stack @@ -3448,13 +3449,13 @@ bool Unit::AddAura(Aura *Aur) // add aura, register in lists and arrays Aur->_AddAura(); m_Auras.insert(AuraMap::value_type(spellEffectPair(Aur->GetId(), Aur->GetEffIndex()), Aur)); - if (Aur->GetModifier()->m_auraname < TOTAL_AURAS) + if (aurName < TOTAL_AURAS) { - m_modAuras[Aur->GetModifier()->m_auraname].push_back(Aur); + m_modAuras[aurName].push_back(Aur); } Aur->ApplyModifier(true,true); - sLog.outDebug("Aura %u now is in use", Aur->GetModifier()->m_auraname); + sLog.outDebug("Aura %u now is in use", aurName); return true; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8d7bf08b7..07e1975a3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7770" + #define REVISION_NR "7771" #endif // __REVISION_NR_H__