[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;
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 += apply ? mod->m_amount : -(mod->m_amount);