[11767] fix spell mod sending 2

This commit is contained in:
Laise 2011-08-05 08:52:44 +03:00
parent c60425c6bd
commit 68eb5f118c
2 changed files with 2 additions and 2 deletions

View file

@ -18602,7 +18602,7 @@ void Player::AddSpellMod(Aura* aura, bool apply)
int32 val = 0; int32 val = 0;
for (AuraList::const_iterator itr = m_spellMods[mod->m_miscvalue].begin(); itr != m_spellMods[mod->m_miscvalue].end(); ++itr) for (AuraList::const_iterator itr = m_spellMods[mod->m_miscvalue].begin(); itr != m_spellMods[mod->m_miscvalue].end(); ++itr)
{ {
if ((*itr)->GetModifier()->m_auraname == mod->m_auraname && ((*itr)->GetSpellProto()->IsFitToFamilyMask(_mask, _mask2))) if ((*itr)->GetModifier()->m_auraname == mod->m_auraname && ((*itr)->GetAuraSpellClassMask().IsFitToFamilyMask(_mask, _mask2)))
val += (*itr)->GetModifier()->m_amount; val += (*itr)->GetModifier()->m_amount;
} }
val += apply ? mod->m_amount : -(mod->m_amount); val += apply ? mod->m_amount : -(mod->m_amount);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11766" #define REVISION_NR "11767"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__