mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11767] fix spell mod sending 2
This commit is contained in:
parent
c60425c6bd
commit
68eb5f118c
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue